Hi All,
I am trying to get the canonical rule below to work (with my URL instead of the below) however it just seems to be ignored.
RewriteEngine on
rewritecond %{http_host} ^domain.net/forums [nc]
rewriterule ^(.*)$ http://www.domain.net/forums/$1 [r=301,nc]
This should be just doing a 301 redirect of all http://mydomain
to
http://www.mydomain
However when I call mydomain.net/forum it does not get redirected to www
Any ideas?
I am using the google SEO plugin and I am sure this may have something to do with it. I don't want to use [L] on these because it still needs to call the rest afterwards right?
Dan
Oh found the issue. it was my rewrite rule, changed it to
RewriteCond %{HTTP_HOST} !^www\. [NC]
I am trying to get the canonical rule below to work (with my URL instead of the below) however it just seems to be ignored.
RewriteEngine on
rewritecond %{http_host} ^domain.net/forums [nc]
rewriterule ^(.*)$ http://www.domain.net/forums/$1 [r=301,nc]
This should be just doing a 301 redirect of all http://mydomain
to
http://www.mydomain
However when I call mydomain.net/forum it does not get redirected to www
Any ideas?
I am using the google SEO plugin and I am sure this may have something to do with it. I don't want to use [L] on these because it still needs to call the rest afterwards right?
Dan
Oh found the issue. it was my rewrite rule, changed it to
RewriteCond %{HTTP_HOST} !^www\. [NC]