Forum Moderators: phranque
The .htaccess code I'm using is:
Options +FollowSymlinks -indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.forum\.domain\.com [NC]
RewriteRule (.*) [forum.domain.com...] [R=301,L]
Which works well for my sites but on my forum if the original url contains a '/' forward slash .. it is still added to the end of the re-directed url.
This:
[domain.com...]
Becomes:
[forum.domain.com...]
(notice the extra forward slash ...)
Anyone know how this can be corrected?
RewriteCond %{HTTP_HOST} !^www\.domain\.com
RewriteRule [b]^/[/b](.*) http://www.domain.com/$1 [R=301,L]
[edit] Corrected formatting [/edit]