View Full Version : 301 redirect

02-14-2011, 01:51 PM
I have possibly made an embarrasing blunder.
The existing site for an accounting firm is http://www.adval-north.com (http://www.adval-north.com/) and they have changed their name and moved to http://www.cooksonadvalorem.com (http://www.cooksonadvalorem.com/).
I had the latter quite high in google originally but the latter has now dropped out from the ratings. I still have the old site up and think this duplication may be the problem.
I have read round the subject and created a .htaccess file and put it on the old site but not really sure if I'm doing the right thing and creating it right (should I be pointing at the index.htm files?
Any suggestions would be gratefully appreciated.

02-14-2011, 07:01 PM
Assuming the sites are exact mirror of each other you should have done a 301 redirect for the entire site from the original domain (http://www.adval-north.com ) to the new one http://www.cooksonadvalorem.com.

This is done in the .htaccess file for the original site.

You should set things up so that each page redirects to its exact match on the new site (so that http://www.adval-north.com/accountancyservices.htm goes to http://www.cooksonadvalorem.com/accountancyservices.htm for instance).

You should be able to do that with one rule:

redirect 301 / http://www.yoursite.com/

but test it carefully, there can be other factors that affect if it works correctly.

Support IT
05-13-2015, 05:26 PM
when you 301 a site should you not do it on a page by page basis?

05-18-2015, 04:51 AM
when you 301 a site should you not do it on a page by page basis?

Not really - you can simply do a full website redirect.

You can do this using a .htaccess text file. IF you have Apache server using Linux.
If you have a windows platform server.. its different code.

Try this first http://www.rapidtables.com/web/tools/redirect-generator.htm

they produced this:
Redirect 301 / http://mynewwebsite.com - which is for a .htaccess txt file.

I tried a few but this one will not do the process IF your have "invalid URLs" is this with spaces between words - "my web page.html should have either _ underline or hyphens. adding %20 did not work for me!
These have options for different server types.


for a total 301 from old domain to new domain - it gave this
I am no expert but this seems too be used by those who have a cPanel to there Apache reWrite module.

RewriteEngine on

# Redirect to another domain: mynewwebsite.com.

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^(www\.)?mynewwebsite\.com$ [NC]
RewriteRule .* http://mynewwebsite.com%{REQUEST_URI} [R=301,L]
# Same for HTTPS:
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^(www\.)?mynewwebsite\.com$ [NC]
RewriteRule .* https://mynewwebsite.com%{REQUEST_URI} [R=301,L]

the "test" I used was "mynewwebsite" as you can see.

I did a search for - "301 generators" and you can check dozens....
Just do some reading on the process before you try a real transfer!

I am not sure if a full web transfer will operate if you have invalid URLs.

I tried moving a "directory" /folder which held a page with spaces in the name - it would not function.

A 301 redirect will tell also transfer any backlinks from the old URLs to the new versions. Which is perhaps why your new site sank! An old site gets "age" points with Google - a new domain get stuck in limbo for 3 months before Google bother about it. So if you lost all your backlinks.. and a new domain name..... its deeper than the Titanic!