Forum Moderators: phranque

Message Too Old, No Replies

Problem with canonical (www) redirect and blog

         

Andy_I

5:51 pm on Dec 26, 2009 (gmt 0)

10+ Year Member



Hi all,

I have recently launched a website and from an SEO perspective I wanted to force all references to site to include 'www.'.

Based on several posts I've seen, I've used the following in the .htaccess file in the root directory:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^tuscanyholidays-example\.com
RewriteRule ^(.*)$ [tuscanyholidays-example.com...] [R=permanent,L]

This work fine in terms of redirecting 'tuscanyholidays-example.com' but when I now try to launch the Wordpress blog I have in subdirectory 'blog', it doesn't work. In other words 'www.tuscanyholidays-example.com/blog/' just gives me an 'Internet explorer cannot display the page' message. If I delete the .htaccess file and Refresh the browser page the blog shows correctly.

Can anyone please help with this?

Andy

wilderness

6:05 pm on Dec 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This question is asked here frequently.

wordpress+canocial [google.com]