You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1022 B
ApacheConf
33 lines
1022 B
ApacheConf
Options -Indexes
|
|
|
|
ErrorDocument 404 /404.html
|
|
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
RewriteRule ^data/uploads/(.*)$ /files/$1 [R=301,NC,L]
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.+)/$ /$1 [L,R=301]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^([^\.]+)$ $1.html [NC,L]
|
|
|
|
# O P T I M I Z E
|
|
<If "%{REQUEST_URI} =~ m#(assets|files|images)/(.+)$#">
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive on
|
|
|
|
ExpiresByType image/jpg “access plus 7 days”
|
|
ExpiresByType image/png “access plus 7 days”
|
|
ExpiresByType application/javascript “access plus 1 days”
|
|
ExpiresByType text/javascript “access plus 1 days”
|
|
ExpiresByType text/css “access plus 1 days”
|
|
</IfModule>
|
|
</If>
|
|
<Else>
|
|
<IfModule mod_http2.c>
|
|
H2PushResource /assets/css/main.css
|
|
H2PushResource /assets/css/media.css
|
|
H2PushResource /images/happy-map-helena.jpg
|
|
H2PushResource /images/house-porch-signal.jpg
|
|
</IfModule>
|
|
</Else> |