301 redirects
-
Hi,
I am a working on a new web site, and I want to redirect all the urls of another site (on a different host) to this one. According to both hosts it is "impossible" to do this for all urls. I don't believe that to be the case, but how do I do this? And, should both sites be hosted on the same server first?
-
So are you planning on redirecting examplesitea.com -> examplesiteb.com?
-
Hi, that's correct. I want to redirect all sub pages from site A to site B as well.
-
Ok, well if you are using linux apache then you can use the following rule in your htaccess file provided you are keeping your URL structures the same on the new site as the old site:
RewriteEngine On RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.olddomain.com$ RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]If you are using new urls you will have to create rules for each individual URL which can be done using an excel spread sheet which i can provide you with.
-
thanks, I'll give it a shot!