19 lines
590 B
ApacheConf
Executable File
19 lines
590 B
ApacheConf
Executable File
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresByType image/jpg "access 1 month"
|
|
ExpiresByType image/jpeg "access 1 month"
|
|
ExpiresByType image/gif "access 1 month"
|
|
ExpiresByType image/png "access 1 month"
|
|
ExpiresDefault "access 1 week"
|
|
</IfModule>
|
|
|
|
Options +FollowSymLinks
|
|
RewriteEngine on
|
|
|
|
# Avoid rewriting existing dirs
|
|
RewriteRule ^/?(js|css|images|symbols|data|heatmaps|crossdomain.*|favicon.*|\.well-known|browserconfig\.xml|robots\.txt|ads\.txt)($|/) - [L]
|
|
|
|
# Rewrite url
|
|
RewriteCond %{REQUEST_METHOD} !=POST
|
|
RewriteRule ^(.*)$ index.php?view=$1 [NC,L,QSA]
|