add rewrite base directive
This commit is contained in:
parent
b11a358505
commit
a335eec82a
14
.htaccess
14
.htaccess
|
@ -1,11 +1,11 @@
|
||||||
<IfModule mod_rewrite.c> # Check for mod_rewite module.
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On # Turn mod_rewrite module on
|
RewriteEngine On
|
||||||
#RewriteBase / # May be required to access sub-directories
|
#May be required to access sub-directories
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f # Any request that is not a file,
|
#RewriteBase /
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d # Any request that is not a directory,
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule . index.php [L] # Reroute the request to index.php
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule . index.php [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|
||||||
# Prevent file browsing
|
# Prevent file browsing
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
|
|
Loading…
Reference in a new issue