.htaccess included with XF?

  • Thread starter Thread starter Deleted member 745
  • Start date Start date
D

Deleted member 745

Guest
Hi,


Could one of the developers please explain what these lines do in the .htaccess file?

Code:
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
 
Essentially, the rules say:

If the request is something that is
- not a known file OR
- not a known link OR
- not a known directory
Then take the whole request from start to finish
Unless it's for something in the data, js, styles or install directories
And pass it to index.php
 
Top Bottom