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

What HTAccess rule is:

Discussion in 'XenForo Pre-Sales Questions' started by Shamil, Oct 2, 2010.

  1. Shamil

    Shamil Well-Known Member

    Hi,
    I'd like to know a few things in advance before I purchase. It won't affect if I purchase, but it will affect my deployment.
    What are the rewrite rules and regexes being used in the htaccess?
    Thanks.
     
    Philip Morton likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Currently:
    Code:
    <IfModule mod_rewrite.c>
    	RewriteEngine On
    
    	RewriteCond %{REQUEST_FILENAME} -f [OR]
    	RewriteCond %{REQUEST_FILENAME} -l [OR]
    	RewriteCond %{REQUEST_FILENAME} -d
    	RewriteRule ^.*$ - [NC,L]
    	RewriteRule ^(data|js|styles) - [NC,L]
    	RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    As a follow up Mike, will owners be required to enter any additional data in the .htaccess?

    Apart from any specific content they might already have I mean.
     
  4. Mike

    Mike XenForo Developer Staff Member

    No, it's sufficient as is for XF (and is future proof). (If you're doing an import from vB with vBSEO and want 301s, you would.)
     
  5. Shamil

    Shamil Well-Known Member

    Thank you very much mike!
     

Share This Page