Support » How-To and Troubleshooting » Use Multiple Domains On One WordPress Site – Keep Pagerank When Moving

Use Multiple Domains On One WordPress Site – Keep Pagerank When Moving

  • Hi Guys,

    I have a few questions regarding keeping pagerank and using multiple domain names on one wordpress site. Please note im kinda new to all this stuff. (our wordpress site is still currently under construction)

    We decided to move from Blogger to wordpress as it offered a lot more customisation and so forth. So we decided to buy a new domain name and hosting space and set it up.

    1. Our domain name on Blogger is http://www.game-modo.com and the one under wordpress is http://www.game-modo.co.uk. Can we use both domain names? If so how?

    2. We also want it so if a user clicks on a link to an article we posted under game-modo.com a while back takes them to our new site and not blogger. is that possible? (hope so as it would save us page ranks etc) Please note we have imported all content from Blogger into WordPress.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi gamemodo,

    I’m facing the same problem as your #1. I found 3 plugins that do exactly what we need. The problem is that none seems works in WordPress 3.5.1. Here are they in descing order of last update:
    Multiple Domains with Analytics
    Domain Mirror

    Give them a try and please report if they run in your setup.

    I tried to contact the developers of the first two. Let’s see if we get lucky and they’re still around. Otherwise I sense some nights of “messing with other people’s code” ahead.

    Nevermind. The plugins, at least the first two, are working. My issue was that I had WP_SITEURL and WP_HOME hardcoded in wp-config.php

    I, how have you manage to have 2 differents domains when navigating on the same website ? Could you explain please, which plugin have you used?

    I tried both first two plugins but it doesn’t work
    when i navigate on the links it redirects on the primary/principal domain…

    I don’t have any WP_SITEURL and WP_HOME hardcoded in wp-config.php file.

    Any suggestion, it seems that the site is using a general options for the links when navigating and even installing this plugins when clicking any internal links we are alway redirected to the primary/principal domain

    Hi I found a solution

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

    Adding this code in wp-config.php

    BUT now some thumbnails are broken on my template, only when accessing primary domain it is showing the images. It is using the function get_thumbnail()

    solution solved,
    it was a problem related to the template, must upgraded it and it works fine now

    the solution for me was :

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

    Adding this code in wp-config.php

    dwnfred – I know this is old, so hopefully you’ve moved away from this practice… but running two domains independently on the same content will ultimately degrade your pagerank. Check out this link:

    Specifically this section.

    <strong>Devalued Domains</strong>
    If a search engine determines that many URLs serve up identical content, the engine will select a preferred version (often referred to as the “canonical” version) and reduce the value of the other copies. It will do this for each page for which it finds apparent duplicates, and the canonical version may not be the same domain name for each page. This can cause the search engines to consider your internal linking inadequate and ultimately devalue all your domains.

    While your method is functional, the best solution is to add a 301 redirect so all of your old links upload to the new links. This is the best way I’ve found to do that:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
    RewriteRule ^blog/(.*)$ http://newdomain.com/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
    RewriteRule ^blog/(.*)$ http://www.newdomain.com/$1 [R=301,L]

    I add the www separate from the domain in case links are out there with/without it.

    Yikes, forgot to close the link. Sorry 🙂

    Josh, question if you have a minute. If I hosted a blog at example.com/ and wanted to transfer it to contoso.com/, would the RewriteRule regex simply be RewriteRule ^/(.*)$ ...?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Use Multiple Domains On One WordPress Site – Keep Pagerank When Moving’ is closed to new replies.
Skip to toolbar