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

XF 1.1 help me with .htaccess

Discussion in 'XenForo Questions and Support' started by Member 3639, Sep 14, 2012.

  1. Member 3639

    Member 3639 Active Member

  2. Saarbruecken

    Saarbruecken Active Member

  3. Member 3639

    Member 3639 Active Member

    Will that make any page they tried to access go to whatever they want /forum?
     
  4. Saarbruecken

    Saarbruecken Active Member

    Just give it a try, I currently cannot test it.
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This should do it (in a .htaccess file in the web root):

    Code:
    RewriteEngine On
    RewriteRule ^index\.php http://www.gamingonlinux.com/forum/index.php [R=301,L]
    
    Or if you intend to upload a different index.php to the web root then use this:

    Code:
    RewriteEngine On
    RewriteCond %{QUERY_STRING} !^$
    RewriteRule ^index\.php http://www.gamingonlinux.com/forum/index.php [R=301,L]
    
    That will redirect all old index.php URLs (index.php?SOMETHING) except for plain old "index.php"
     
  6. greenchicken

    greenchicken Member

    Ok , what if I move the site from /forum to root ?
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Place this in a .htaccess file in /forum to redirect all old URLs:

    Code:
    Redirect 301 /forum/ /
    
     
    greenchicken likes this.
  8. greenchicken

    greenchicken Member

    awesome... Thank you
     

Share This Page