.htaccess redirects

OldCow

New Member
Since I'm not able to post url's, hopefully you can answer the question.

What is the correct syntax for .htaccess to redirect mysite to wwwmysite?

RewriteEngine On
RewriteCond %{HTTP_HOST} ^forum.mysite$
RewriteRule ^(.*)$ forum.mysite/$1 [R=301,L]
 
Top