Forum Moderators: phranque
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.co\.uk$
RewriteRule ^(.*)$ [www....] example.co.uk/$1 [R=301,L]
Then in the "find" folder I have the following rules to enable a large number of SEF pages
RewriteEngine on
RewriteRule ^([-a-zA-Z]+)/$ /find/view.php?code=$1 [L]
RewriteRule ^([-a-zA-Z]+)/([-a-zA-Z]+)/$ /find/view.php?code=$1&loc=$2 [L]
The canonicalization works find for all the site except for pages like "example.co.uk/find/roses/london/" which do not get redirected to the "www" equivolent as I would like.
Anyone know the solution here? Any help much appreciated!