Skip to content

Commit

Permalink
Merge 1d97a80 into 6c97a03
Browse files Browse the repository at this point in the history
  • Loading branch information
muchirijane committed Oct 9, 2020
2 parents 6c97a03 + 1d97a80 commit 15fb2b8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions httpdocs/template.htaccess
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
# Turn on URL rewriting
RewriteEngine On

RewriteEngine On
# Set base directory
RewriteBase /httpdocs
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

0 comments on commit 15fb2b8

Please sign in to comment.