Forum Moderators: phranque
RewriteCond %{QUERY_STRING} ^id=(.*)$
RewriteRule ^forums/(.*)$ http://forums.mysite.com/$1%1 [R=301,L]
An example is www.mysite.com/forums/viewforum.php?id=21 and it redirects to forums.mysite.com/viewforum.php21?id=21 instead of forums.mysite.com/viewforum.php?id=21
Is there an easier way to redirect an entire folder regardless of queries/no queries to a sub domain?
Thanks.
redirect 301 /forums/ [forums.mysite.com...]
should have checked better.