2
0
Fork 0

Weitere Netcup-Anpassungen

This commit is contained in:
Patrick Schwarz 2024-04-05 20:19:17 +02:00
parent 025bbb1bf9
commit 225e5d676a
6 changed files with 38 additions and 14 deletions

View file

@ -1,13 +1,8 @@
# Charset
AddDefaultCharset UTF-8
# Enable gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy
</IfModule>
# Site-Icon Rules
RewriteRule ^favicon\.ico$ img/favicon.ico [R=301,L]
RewriteRule ^favicon\.ico$ /img/favicon.ico [L]
# Caching
<IfModule mod_expires.c>
@ -19,8 +14,6 @@ RewriteRule ^favicon\.ico$ img/favicon.ico [R=301,L]
</FilesMatch>
</IfModule>
DirectoryIndex index.html index.htm
# Robots.txt
<Files "robots.txt">
Allow from all
@ -28,14 +21,9 @@ DirectoryIndex index.html index.htm
Satisfy all
</Files>
# Shorturl
RewriteRule ^[a-zA-Z0-9]{6}$ https://go.p-schwarz.de [P]
# Spaceapi
RewriteRule ^spaceapi.json$ /spaceapi/ [R=302,L]
RewriteRule ^spaceapi$ /spaceapi/ [R=302,L]
RewriteRule ^spaceapi/(.*)$ https://spaceapi.ctbk.de/$1 [P]
# Hackcal
RewriteRule ^hackcal$ /hackcal/ [R=302,L]
RewriteRule ^hackcal/(.*)$ https://hackcal.ctbk.de/$1 [P]
RewriteRule ^hackcal$ /hackcal/ [R=302,L]