They say you learn something new every day.

I’ve known for a while that you need to set up a 301 redirect to solve www/non-www canonical problems. 

But I’ve never sat down and actually done it. Today’s the day to solve that problem:

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

I need to go do it on all my websites now.

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

Tag Cloud

%d bloggers like this: