Support » Localhost Installs » Seperate files one DB

  • Hello, so I have one wordpress in server, and one locally. But I want to use remote database in my local wordpress. But the problem is that it always redirects me to the remote server as the site_url in database is from online version of wordpress. Is it possible somehow to define server url in php?
    I tried these but do not work. Also I have Multisite enabled.

    define(‘RELOCATE’,true);
    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

Viewing 3 replies - 16 through 18 (of 18 total)
Viewing 3 replies - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.