# ─── yugen.bokarius.de — .htaccess ─────────────────────────────── # Einmal in den Webroot (/html/ bei Lima City), dann nie wieder anfassen. Options -Indexes DirectoryIndex index.html # ─── Clean URLs: /firejam lädt firejam.html ─────────────────────── RewriteEngine On # Bereits existierende Dateien/Ordner direkt durchlassen RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] # /seite.html → Redirect auf /seite (canonical, kein .html in URL) RewriteCond %{THE_REQUEST} \s/+(.*?)\.html[\s?] [NC] RewriteRule ^ /%1 [R=301,L] # /seite (ohne .html) → intern auf seite.html mappen RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^([^.]+)$ $1.html [L] # ─── HTTPS erzwingen (falls SSL aktiv) ──────────────────────────── # RewriteCond %{HTTPS} off # RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # ─── Caching für statische Assets ──────────────────────────────── ExpiresActive On ExpiresByType text/html "access plus 1 hour" ExpiresByType text/css "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType font/woff2 "access plus 1 month"