• Resolved koraxcz

    (@koraxcz)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What’s the whole Multisite section of your wp-config?

    What’s in your .htaccess?

    Thread Starter koraxcz

    (@koraxcz)

    Hi. Thanks for the message.

    Seems I’ve been able to sort this out — I removed the new site and the DB, imported the DB again and copied the files in again. I ran the search and replace script again and everything’s good. Seems I must have done something wrong in these steps the first time.

    Thanks,
    Ondrej

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘localhost/localhost/localhost/page url in moved WordPress’ is closed to new replies.