Skip to content

Commit

Permalink
Update htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalhasandev committed Nov 8, 2022
1 parent 2b4b229 commit ce865b6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Laravel 9/htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
Expand All @@ -11,14 +9,15 @@
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# SSL FORCE

# SSL FORCE
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]

# Redirect to Public Folder...
RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
Expand All @@ -29,7 +28,6 @@
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php [L]
</IfModule>

<FilesMatch ".env">
Order allow,deny
Deny from all
Expand Down

0 comments on commit ce865b6

Please sign in to comment.