Jump to content

Two Routes To One Site


Recommended Posts

I've just transferred my site to a nice, shiny new hosting space with TCH.


Before I changed the DNS entries to point to TCH I used the machinename.hostname.com/~username route to gain access and copy everything across. I - perhaps foolishly - put a link on the old site to allow potential customers access to the new one while the DNS changes propagated. It seemed like a good idea at the time ...


I now have a situation where Googlebot (and possibly other spiders) has/have found the above route. They'll be back again, soon, via the proper (public) URL. My concern is that they'll see them as two seperate sites and penalise them for duplicate content.


My questions are:


a ) Do I have an impending problem, or will they ignore the apparent duplication (by IP address or some other mechanism)?


b ) If I have an impending problem what can I do about it?

Edited by Swift
Link to comment
Share on other sites

On your account, I would add the following to your .htaccess


>RewriteEngine On
RewriteCond %{HTTP_HOST} !^your_domain_name.com$ [NC]
RewriteRule ^(.*)$ http://your_domain_name/$1 [R,L]

Which basically says, if the person hitting your site is not using your_domain_name.com then it redirects to use that domain name.


( Of course you need to change your_domain_name.com to swiftbooks or whatever it is.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...