Take the 2-minute tour ×

I have domain.com/forums but I need help redirecting the forums to sub.domain.com

Below works but I end up with


RewriteEngine on
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try this:

RewriteEngine on
RewriteCond %{REQUEST_URI}  ^\/?forum\/.* 
RewriteRule ^\/?forum\/(.*)$ http://sub.domain.com/$1 [R=301,L]

P.S. i using "/?" because i forget REQUEST_URI format :(

share|improve this answer

Your Answer


