There are many ways how you can do 301 redirect, I will mention just two of them.

Preferred domain setup with 301 redirect

.htaccess file is usually located in the root folder of your website. You would have to modify it a little.

.htaccess method

If preferred domain is www.website.com

RewriteEngine on
RewriteCond %{HTTP_HOST} ^website\.com$
RewriteRule ^(.*)$ http://www.website.com/$1 [L,R=301]

If preferred domain is website.com

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.website\.com$
RewriteRule ^(.*)$ http://website.com/$1 [L,R=301]

WordPress method

If your website is using WordPress software, install Redirection plugin,
you can quickly setup 301 redirect without modifying .htaccess file (However .htaccess way is recommended from the performance point of view).
Login to your wordpress admin and navigate to Tools::Redirection.

Add New Redirection if preferred domain is www.website.com:

Source URL: ^website\.com$
Target URL: http://www.website.com/$1
Regular expression: checked

Add New Redirection if preferred domain is website.com:

Source URL: ^www.website\.com$
Target URL: http://website.com/$1
Regular expression: checked

Internal links 301 redirect

Incorrect internal linking can also be a reason of the duplicated content. Try to keep your internal linking consistent. Use 301 redirect to fix them.

.htaccess method

Redirect 301 /oldpage.html http://ajax911.com/newpage.html 
Redirect 301 /oldpage2.html http://ajax911.com/newpage/

WordPress method

Source URL: /oldpage.html
Target URL: /newpage.html

To read more about the 301 redirect please go here:
https://support.google.com/webmasters/bin/answer.py?hl=en&answer=93633

Dima Svirid

Software architect. Ajax/Javascript, HTML5, Android, iPhone/iPad, JAVA, PHP, Cold Fusion, SQL, Air, Flash, Open source software, Frameworks

More Posts

Follow Me:

 

Leave a Reply