Skip to content

Commit

Permalink
initial: Commit and release
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Jan 13, 2024
1 parent 83dbcd5 commit 3516ae6
Show file tree
Hide file tree
Showing 9 changed files with 1,058 additions and 0 deletions.
37 changes: 37 additions & 0 deletions site-root/public/.htaccess
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>
Loading

0 comments on commit 3516ae6

Please sign in to comment.