mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 06:49:18 +01:00
htaccess update
This commit is contained in:
parent
80fcb43543
commit
12abfd431f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user