The Archives

Tag Archives: 301

Use 301 redirects for moved or deleted pages

Posted in: Blog by admin on July 15, 2009

Use 301 redirects for moved or deleted pages

What happens when you remove or change the location of an indexed page or your entire site? Users may continue to find it as a result in Google’s database, but when they arrive, they won’t find anything. Alternatively, if your old page has accumulated high rankings or trust (PageRank) in search engines, deleting or removing it will mean that you’ve wasted all that hard work.

Read more…

Use either www or non‐www, not both

Posted in: Blog by admin on June 12, 2009

Use either www or non‐www, not both

A confusion between or use of both www and non‐www for your URLs can result in canonical issues in search engines, where ‘www.example.com’ might be mis‐taken as a duplicate of ‘example.com’. You can use the 301 redirect to force one of the two. For instance, to force the non‐www version to redirect to www, place the following code in your .htaccess file:

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