301 redirect!

Posted: February 16, 2013 in Uncategorized
Tags: , , ,

Anybody else have problems with this? Apparently it’s easy to solve by adding code again to the htcaccess file, not having much joy myself still getting up canonization errors and redirects from my ip to network 404 errors. When I get it sorted will post the solution so keep a watch here over the next few days for the solution.This is part of the solution for the www redirect anyway enjoy more to follow!!

  1. # WWW redirect
  2. RewriteEngine On
  3. RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
  4. RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s