2020-05-27 18:46:16 +02:00
|
|
|
# Disable directory browsing
|
|
|
|
Options All -Indexes
|
|
|
|
|
2020-09-12 11:32:08 +02:00
|
|
|
# Disable server signature
|
|
|
|
ServerSignature Off
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
Options +FollowSymlinks
|
|
|
|
RewriteEngine On
|
2020-09-12 11:32:08 +02:00
|
|
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
|
|
RewriteRule ^.*$ - [NC,L]
|
|
|
|
RewriteRule ^.*$ index.php [NC,L]
|
2020-05-27 18:46:16 +02:00
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
<IfModule !mod_rewrite.c>
|
2020-09-12 11:32:08 +02:00
|
|
|
# If we don't have mod_rewrite installed, all 404's
|
|
|
|
# can be sent to index.php, and everything works as normal.
|
|
|
|
ErrorDocument 404 /index.php
|
2021-04-02 17:20:02 +00:00
|
|
|
</IfModule>
|