localhost/localhost/localhost/page url in moved WordPress
-
I have a multisite wordpress application which I recently moved. All the sites are practically the same, just different languages. The application is still in development, so there was no domain name to change yet — I just changed the site’s address from IP to localhost using a search and replace script.
I also added the following to wp-config.php:
define('WP_SITEURL', 'http://localhost'); define('WP_HOME', 'http://localhost');When I run the site, everything seems to load correctly. However, the links in the default language (english) have bad URLs (this doesn’t happen in the other languages), which look like this:
http://localhost/localhost/customers/
Should be http://localhost/customers/ of course. If I load such page, the same menu link that pointed to it will now be pointing to http://localhost/customers/localhost/customers/.
I can’t seem to be able to find out what is causing this, but maybe somebody already encountered this.
An advice would be appreciated.
Thanks, Ondrej
The topic ‘localhost/localhost/localhost/page url in moved WordPress’ is closed to new replies.