[FONT=verdana][SIZE=2][COLOR=#000000]I understand that with Google, you need to get the canonical redirect working correctly, else you might lose PR.
When you go to my homepage, if you type [/COLOR][/SIZE][/FONT]example.co.uk, it goes to www.example.co.uk. But if you go to example.co.uk/forums/, it stays there, rather than redirecting to www.example.co.uk[FONT=verdana][SIZE=2][COLOR=#000000]/forums/.
How can I get it to go to www.[/COLOR][/SIZE][/FONT]example.co.uk[FONT=verdana][SIZE=2][COLOR=#000000]/forums/ ?
My root htaccess code is:
[/COLOR][/SIZE][/FONT]
# Externally redirect only direct client requests for /index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\\ /([^/]+/)*index.(html?|php)\\ HTTP/
RewriteRule ^(([^/]+/)*)index.(html?|php)$ http://www.example.co.uk/$1 [R=301,L]
#
# Externally redirect to canonicalize the domain name if a non-canonical
# hostname is requested, in order to prevent duplicate-content problems
RewriteCond %{HTTP_HOST} !^(www\\.example\\.co.uk)?$
RewriteRule (.*) http://www.example.co.uk/$1 [R=301,L]
In my forums folder, I have this htaccess code:
AcceptPathInfo On
RewriteEngine On
RewriteRule ^((urllist|sitemap).*\\.(xml|txt)(\\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
xcache.var_size = 3M
xcache.var_count = 2
xcache.var_slots = 8K
xcache.var_ttl = 7200
xcache.var_maxttl = 14400
xcache.var_gc_interval = 300[FONT=verdana][SIZE=2][COLOR=#000000] [/COLOR][/SIZE][/FONT]