Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cotech
ansible
Commits
d2a6ec02
Commit
d2a6ec02
authored
7 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Fix for
https://github.com/cotech/website/issues/45
parent
547e93a4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/live2dev/files/htaccess
+15
-8
15 additions, 8 deletions
roles/live2dev/files/htaccess
with
15 additions
and
8 deletions
roles/live2dev/files/htaccess
+
15
−
8
View file @
d2a6ec02
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment