innhold/content/.htaccess
2025-10-02 17:01:55 +02:00

14 lines
377 B
ApacheConf

DirectorySlash Off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Serve static files from /app outside document root
RewriteRule ^app/(.*)$ /app-proxy.php?file=$1 [L,QSA]
# Don't rewrite if file exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/app/
RewriteRule ^(.*)$ /index.php [L,QSA]
</IfModule>