Skip to content

Commit c3378a8

Browse files
authored
Merge pull request #1 from jalallinux/patch-1
Create .htaccess
2 parents 4c955f4 + c852eb8 commit c3378a8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

public/.htaccess

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<IfModule mod_rewrite.c>
2+
<IfModule mod_negotiation.c>
3+
Options -MultiViews -Indexes
4+
</IfModule>
5+
6+
RewriteEngine On
7+
8+
# Redirect Trailing Slashes If Not A Folder...
9+
RewriteCond %{REQUEST_FILENAME} !-d
10+
RewriteCond %{REQUEST_URI} (.+)/$
11+
RewriteRule ^ %1 [L,R=301]
12+
13+
# Send Requests To Front Controller...
14+
RewriteCond %{REQUEST_FILENAME} !-d
15+
RewriteCond %{REQUEST_FILENAME} !-f
16+
RewriteRule ^ index.php [L]
17+
</IfModule>

0 commit comments

Comments
 (0)