Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1139723
    kludrik
    Participant

    I have purchased hotellnorgebergen.no and hotellnorgebergen.com. I want both names to direct to my x-site hotellnorgebergen.no. hotellnorgebergen.no works fine, – .com do not. Both names DNS points to the correct IP.adress.

    I have tried to write these sentences into “function.php” in the x-child theme:

    update_option( ‘siteurl’, ‘http://hotellnorgebergen.no’, ‘http://hotellnorgebergen.com’ );
    update_option( ‘home’, ‘http://hotellnorgebergen.no’, ‘http://hotellnorgebergen.com’ );

    It does not work. hotellnorgebergen.com will not route to hotellnorgebergen.no

    Any suggestions?

    #1140138
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in!

    This request is way beyond the scope of our support. This is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    This needs a little configuration within your WordPress functions.php file. Please use this instead:

    define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
    define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);

    Please check out this article:
    https://wordpress.org/support/topic/use-multiple-domains-on-one-wordpress-site-keep-pagerank-when-moving

    Thank you for your understanding.

  • <script> jQuery(function($){ $("#no-reply-1139723 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>