You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
476 B
20 lines
476 B
# Rederection if URL not found
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_FILEANME} !-f
|
|
RewriteCond %{REQUEST_FILEANME} !-d
|
|
RewriteRule (.+) index.php?p=$1 [QSA,L]
|
|
</IfModule>
|
|
|
|
# Redirecting 403 errors to index.php (does not work)
|
|
ErrorDocument 403 http://localhost:8888/api-rest/index.php
|
|
|
|
# Refusing access to all files ending with php
|
|
Require all denied
|
|
|
|
# Allowing access to index.php
|
|
<Files index.php>
|
|
Require all granted
|
|
</Files>
|
|
|