🚧 Add .htaccess for routing
This commit is contained in:
parent
8f73b38a5e
commit
a88fa129a8
1 changed files with 19 additions and 0 deletions
19
.htaccess
Normal file
19
.htaccess
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
AddDefaultCharset UTF-8
|
||||||
|
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
|
||||||
|
# Enable rewrite rules
|
||||||
|
RewriteEngine on
|
||||||
|
|
||||||
|
# Base directory
|
||||||
|
RewriteBase /
|
||||||
|
|
||||||
|
# Deny direct access to the next directories
|
||||||
|
RewriteRule ^bl-content/(databases|workspaces|pages|tmp)/.*$ - [R=404,L]
|
||||||
|
|
||||||
|
# All URL process by index.php
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*) index.php [PT,L]
|
||||||
|
|
||||||
|
</IfModule>
|
Loading…
Add table
Reference in a new issue