Mercurial > borealpoint
comparison public/.htaccess @ 0:9d7dcd54c677
Initial Commit and package setup
| author | luka |
|---|---|
| date | Sat, 23 Aug 2025 22:20:51 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:9d7dcd54c677 |
|---|---|
| 1 <IfModule mod_rewrite.c> | |
| 2 <IfModule mod_negotiation.c> | |
| 3 Options -MultiViews -Indexes | |
| 4 </IfModule> | |
| 5 | |
| 6 RewriteEngine On | |
| 7 | |
| 8 # Handle Authorization Header | |
| 9 RewriteCond %{HTTP:Authorization} . | |
| 10 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
| 11 | |
| 12 # Handle X-XSRF-Token Header | |
| 13 RewriteCond %{HTTP:x-xsrf-token} . | |
| 14 RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}] | |
| 15 | |
| 16 # Redirect Trailing Slashes If Not A Folder... | |
| 17 RewriteCond %{REQUEST_FILENAME} !-d | |
| 18 RewriteCond %{REQUEST_URI} (.+)/$ | |
| 19 RewriteRule ^ %1 [L,R=301] | |
| 20 | |
| 21 # Send Requests To Front Controller... | |
| 22 RewriteCond %{REQUEST_FILENAME} !-d | |
| 23 RewriteCond %{REQUEST_FILENAME} !-f | |
| 24 RewriteRule ^ index.php [L] | |
| 25 </IfModule> |
