-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7df7a83
commit 74d2c13
Showing
22 changed files
with
134,078 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<ifModule mod_rewrite.c> | ||
|
||
|
||
####################################################################### | ||
# GENERAL # | ||
####################################################################### | ||
|
||
# Make apache follow sym links to files | ||
Options +FollowSymLinks | ||
# If somebody opens a folder, hide all files from the resulting folder list | ||
IndexIgnore */* | ||
|
||
|
||
####################################################################### | ||
# REWRITING # | ||
####################################################################### | ||
|
||
# Enable rewriting | ||
RewriteEngine On | ||
|
||
# If its not HTTPS | ||
RewriteCond %{HTTPS} off | ||
|
||
# Comment out the RewriteCond above, and uncomment the RewriteCond below if you're using a load balancer (e.g. CloudFlare) for SSL | ||
# RewriteCond %{HTTP:X-Forwarded-Proto} !https | ||
|
||
# Redirect to the same URL with https://, ignoring all further rules if this one is in effect | ||
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L] | ||
|
||
# If we get to here, it means we are on https:// | ||
|
||
# If the file with the specified name in the browser doesn't exist | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
|
||
# and the directory with the specified name in the browser doesn't exist | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
|
||
# and we are not opening the root already (otherwise we get a redirect loop) | ||
RewriteCond %{REQUEST_FILENAME} !\/$ | ||
|
||
# Rewrite all requests to the root | ||
RewriteRule ^(.*) / | ||
|
||
</ifModule> | ||
|
||
<IfModule mod_headers.c> | ||
# Do not cache sw.js, required for offline-first updates. | ||
<FilesMatch "sw\.js$"> | ||
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" | ||
Header set Pragma "no-cache" | ||
</FilesMatch> | ||
</IfModule> |
Oops, something went wrong.