Multiple domain names -> same site = menu links from only one domain name (1 post)

  1. wwerner
    Posted 4 years ago #

    I have a WordPress site running at http://www.bareinternational.com. Our office in China cannot access this domain, probably because it is being blocked (because "bare" is part of url, we think).

    So we created a new domain http://www.baievaluators.com and pointed it to http://www.bareinternational.com.

    It works fine going to the home page, in that all of the links in the body of the page are the same as the url in the address bar. However, the links on the menu (the tabs across the top of the page), are always http://www.bareinternational.com. I would like them to be http://www.baievaluators.com if the user typed http://www.baievaluators on the address line of the browser.

    In Settings / General, the WordPress Address and Site Address are both http://www.bareinternational.com

    I am using the standard $menu code in the header.php file of the template, like this:
    $menu = wp_nav_menu(array(
    'sort_column' => 'menu_order',
    'theme_location' => 'header-menu',
    'container' => 'ul',
    'depth' => 2,

    Any ideas on how to preserve the typed url in all links would be appreciated.


Topic Closed

This topic has been closed to new replies.

About this Topic