1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Htaccess redirect ?

Discussion in 'Forum Management' started by FredC, Feb 19, 2014.

  1. FredC

    FredC Well-Known Member

    I recently started a new community on XenForo and left the root empty for future integration of a sophisticated home page however the time for that wont be for quite some time. So, in the meantime id like to redirect..

    http://mysite.com

    to

    http://mysite.com/community/portal/

    Any help would be greatly appreciated...
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can do it with an index file - I used to use a home.php file in the root when I had a page node for the "home" page.
    PHP:
    <?php
    header
    ('Location: http://mysite.com/community/portal'true301);
    Or you can just do a rewrite:
    Code:
    RewriteEngine On
    RewriteRule ^$ /community/portal [L]
     
    Ebla, jamalfree and FredC like this.

Share This Page