htaccess update

This commit is contained in:
Rick van Lieshout 2022-10-17 18:44:11 +02:00
parent 80fcb43543
commit 12abfd431f

View File

@ -1,6 +1,9 @@
# Enable rewriting. # Enable rewriting.
RewriteEngine on RewriteEngine on
# Error docs
ErrorDocument 404 /404.html
# Compress HTML, CSS, JavaScript, Text, XML and fonts # Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/rss+xml
@ -65,11 +68,7 @@ RewriteRule ^(.*)$ http://www.mastermindzh.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
# Redirect everything else to index.html. # redirect old blog pages
# Add QSA to ensure that querystring variables are registered as such.
RewriteRule . index.html [L,QSA]
Redirect /home / Redirect /home /
Redirect /cookies /pages/legal/cookies Redirect /cookies /pages/legal/cookies
Redirect /disclaimer /pages/legal/disclaimer Redirect /disclaimer /pages/legal/disclaimer