Skip to content
Snippets Groups Projects
Commit d2a6ec02 authored by Chris Croome's avatar Chris Croome
Browse files
parent 547e93a4
No related branches found
No related tags found
No related merge requests found
# https://stackoverflow.com/a/10034368
<FilesMatch "\.(ico|gif|jpg|png)$">
ExpiresActive On
ExpiresActive On
ExpiresDefault "access plus 11 month"
Header append Cache-Control "public"
</FilesMatch>
......@@ -22,14 +22,21 @@
# https://stackoverflow.com/questions/24144552/how-to-set-hsts-header-from-htaccess-only-on-https
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
# BEGIN WordPress
# Redirect requests with trailing slashes that are not
# directories, see https://github.com/cotech/website/issues/45
# https://stackoverflow.com/a/21417551
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment