logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > SEO
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Display Modes
Old 02-14-2011, 02:51 PM   #1
dubaco
 
Join Date: Jul 2008
Posts: 98
Default 301 redirect

Hi
I have possibly made an embarrasing blunder.
The existing site for an accounting firm is http://www.adval-north.com and they have changed their name and moved to 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.
Cheers
dubaco is offline  
Old 02-14-2011, 08:01 PM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

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.
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline  
Old 05-13-2015, 06:26 PM   #3
Support IT
 
Join Date: May 2015
Posts: 2
Default

when you 301 a site should you not do it on a page by page basis?
Support IT is offline  
Old 05-18-2015, 05:51 AM   #4
vinnyvangogh
 
Join Date: Aug 2009
Posts: 84
Default

Quote:
Originally Posted by Support IT View Post
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...-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.

http://beamusup.com/generate-htaccess/

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!
vinnyvangogh is offline  
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com