41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
RewriteEngine On
|
|
|
|
RewriteCond %{QUERY_STRING} (^|&)lang=en(&|$)
|
|
RewriteRule ^/?(?:index\.php)?$ /static-pages/en/index.html [END]
|
|
RewriteCond %{QUERY_STRING} (^|&)lang=en(&|$)
|
|
RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/en/$1.html [END]
|
|
|
|
RewriteCond %{QUERY_STRING} (^|&)lang=nah(&|$)
|
|
RewriteRule ^/?(?:index\.php)?$ /static-pages/nah/index.html [END]
|
|
RewriteCond %{QUERY_STRING} (^|&)lang=nah(&|$)
|
|
RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/nah/$1.html [END]
|
|
|
|
RewriteCond %{QUERY_STRING} !(^|&)lang= [NC]
|
|
RewriteCond %{HTTP:Accept-Language} ^en [NC]
|
|
RewriteRule ^/?(?:index\.php)?$ /static-pages/en/index.html [END]
|
|
RewriteCond %{QUERY_STRING} !(^|&)lang= [NC]
|
|
RewriteCond %{HTTP:Accept-Language} ^en [NC]
|
|
RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/en/$1.html [END]
|
|
|
|
RewriteCond %{QUERY_STRING} !(^|&)lang= [NC]
|
|
RewriteRule ^/?(?:index\.php)?$ /static-pages/nah/index.html [END]
|
|
RewriteCond %{QUERY_STRING} !(^|&)lang= [NC]
|
|
RewriteRule ^/?(cv|blog|demos|homelab-tree)\.php$ /static-pages/nah/$1.html [END]
|
|
|
|
<FilesMatch "\.(?:html|css|js|webp)$">
|
|
Header set Cache-Control "public, max-age=300, s-maxage=3600"
|
|
</FilesMatch>
|
|
|
|
<LocationMatch "^/(?:translate|save_lang|save_idea|visitor_ideas)\.php$">
|
|
Header set Cache-Control "no-store"
|
|
</LocationMatch>
|
|
|
|
<FilesMatch "\.php$">
|
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
|
</FilesMatch>
|
|
|
|
<Directory "/var/www/localhost/htdocs">
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|