.htaccess + more pages & routes
This commit is contained in:
10
.htaccess
10
.htaccess
@@ -1,18 +1,14 @@
|
||||
php_flag display_errors on
|
||||
Options -Indexes
|
||||
|
||||
RedirectMatch 404 /\.idea
|
||||
RedirectMatch 404 /\.git
|
||||
RedirectMatch 404 /src
|
||||
RedirectMatch 404 /test
|
||||
RedirectMatch 404 /core
|
||||
|
||||
RewriteEngine On
|
||||
RewriteRule ^api(/.*)?$ /index.php?api=$1 [L,QSA]
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
DirectorySlash Off
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-d [OR]
|
||||
RewriteCond %{REQUEST_URI} "(\.idea|\.git|src|test|core)(/.*)?"
|
||||
RewriteRule ^(.*)$ /index.php?site=$1 [L,QSA]
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user