generated from 8fold/github-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
1,058 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,37 @@ | ||
# Deny browse directory | ||
Options -Indexes | ||
|
||
# Handle errors | ||
ErrorDocument 404 /error-404.html | ||
ErrorDocument 405 /error-405.html | ||
ErrorDocument 500 /error-500.html | ||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
|
||
# Handle authorization header | ||
RewriteCond %{HTTP:Authorization} . | ||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | ||
|
||
# Allow only the following request methods | ||
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD) [NC] | ||
RewriteRule .* - [F,L,R=405] | ||
Header add Access-Control-Allow-Methods "GET, HEAD" | ||
Header add Allow "GET, HEAD" | ||
|
||
# Always remove www | ||
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | ||
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L] | ||
|
||
# Redirect to trailing slash if not folder or file | ||
RewriteCond %{REQUEST_URI} /+[^\.]+$ | ||
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L] | ||
|
||
# Handle redirects | ||
# Redirect 301 "/experiences/health-and-wellness/2023/" "/experiences/health-and-wellness/historical-summaries/#2023-44-years-of-age" | ||
|
||
# Send Requests To Front Controller... | ||
# RewriteCond %{REQUEST_FILENAME} !-d | ||
# RewriteCond %{REQUEST_FILENAME} !-f | ||
# RewriteRule ^ index.php [L] | ||
</IfModule> |
Oops, something went wrong.