g1smd

msg:4424230 | 6:19 pm on Mar 2, 2012 (gmt 0) |
The index redirect can be done with a separate RewriteCond and RewriteRule placed before the canonical ruleset. In your existing RewriteCond change !^www\.example\.co.uk [NC] (why escape only two of the three periods?) to this new pattern !^(www\.example\.co\.uk)?$ and remove both the [NC] flag and the second RewriteCond.
|
ispreview

msg:4424425 | 8:00 am on Mar 3, 2012 (gmt 0) |
Putting the subdir redirect before the HTTP_Host call just causes the server to hang, the same as if I were to put it after. RewriteCond %{REQUEST_URI} !content/ RewriteRule ^(.*)$ content/$1 [L] Some people have suggested to use something like this: RewriteRule ^(/)?$ content [L] But ideally when people visit I want them to see the /content under the domain itself and not a URL like [mysite.co.uk...] . But then I'm affraid that forcing that might break existing and or future redirects.. ugh. what a headache :) .
|
g1smd

msg:4424427 | 8:07 am on Mar 3, 2012 (gmt 0) |
Let's see the code you are talking about (with corrections and additions as noted above).
|
ispreview

msg:4424736 | 4:59 pm on Mar 4, 2012 (gmt 0) |
I'm experimenting with Pathinfo instead of rewrite's for WP so that I can hopefully avoid this :) .
|
|