29 lines
No EOL
658 B
ApacheConf
29 lines
No EOL
658 B
ApacheConf
# Charset
|
|
AddDefaultCharset UTF-8
|
|
|
|
# Site-Icon Rules
|
|
RewriteRule ^favicon\.ico$ /img/favicon.ico [L]
|
|
|
|
# Caching
|
|
<IfModule mod_expires.c>
|
|
<FilesMatch "\.(jpg|gif|png|ico|gz|svg|css|js|pdf|woff|woff2)$">
|
|
ExpiresActive on
|
|
ExpiresDefault "access plus 1 week"
|
|
Header append Cache-Control "public"
|
|
Header append Cache-Control "max-age=604800"
|
|
</FilesMatch>
|
|
</IfModule>
|
|
|
|
# Robots.txt
|
|
<Files "robots.txt">
|
|
Allow from all
|
|
Deny from none
|
|
Satisfy all
|
|
</Files>
|
|
|
|
# Spaceapi
|
|
RewriteRule ^spaceapi.json$ /spaceapi/ [R=302,L]
|
|
RewriteRule ^spaceapi$ /spaceapi/ [R=302,L]
|
|
|
|
# Hackcal
|
|
RewriteRule ^hackcal$ /hackcal/ [R=302,L] |