.htaccess redirect (1 post)

  1. Old Cow
    Posted 4 years ago #

    What is the correct syntax for the .htaccess file to redirect from
    http://forum.mysite.com/ to http://www.forum.mysite.com/?

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

    When I use the code above, it redirects, but I can't login to the forum. It returns me to the login page: http://forum.mysite/bb-login.php

    I use the Name based http://forum.mysite.com/forums/first-forum permalink setting, none permalinks didn't make a difference.

Topic Closed

This topic has been closed to new replies.

About this Topic