25 lines
522 B
ApacheConf
25 lines
522 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
Options -MultiViews -Indexes
|
|
RewriteEngine On
|
|
|
|
|
|
RewriteRule ^home/(.+\.(?:css|js|png|jpe?g|gif|svg|ico|woff2?|ttf|eot|otf|webp))$ public/home/$1 [L]
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
|
RewriteCond %{REQUEST_FILENAME} -d
|
|
RewriteRule ^ - [L]
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.+)/$ /$1 [R=301,L]
|
|
|
|
|
|
RewriteRule ^ index.php [L]
|
|
</IfModule>
|
|
|
|
<FilesMatch "\.php$">
|
|
# ensure LSAPI for PHP
|
|
SetHandler application/x-lsphp81
|
|
</FilesMatch>
|