mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-22 16:51:20 +00:00
21 lines
541 B
ApacheConf
21 lines
541 B
ApacheConf
# Disable directory browsing
|
|
Options All -Indexes
|
|
|
|
# Disable server signature
|
|
ServerSignature Off
|
|
|
|
<IfModule mod_rewrite.c>
|
|
Options +FollowSymlinks
|
|
RewriteEngine On
|
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^.*$ - [NC,L]
|
|
RewriteRule ^.*$ index.php [NC,L]
|
|
</IfModule>
|
|
|
|
<IfModule !mod_rewrite.c>
|
|
# 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
|
|
</IfModule> |