Skip to content

Commit 436519f

Browse files
committed
...
1 parent a17292f commit 436519f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.htaccess

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
RewriteEngine On
2-
RewriteBase /public_html/
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine On
33

4-
RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
5-
RewriteRule ^ %1 [L,NE,R=302]
4+
# Redirect all requests to the public/ directory
5+
RewriteCond %{REQUEST_URI} !^/public/
6+
RewriteRule ^(.*)$ /public/$1 [L]
67

7-
RewriteRule ^((?!public/).*)$ public/$1 [L,NC]
8+
# Handle the front controller
9+
RewriteCond %{REQUEST_FILENAME} !-f
10+
RewriteCond %{REQUEST_FILENAME} !-d
11+
RewriteRule ^ /public/index.php [L]
12+
</IfModule>

0 commit comments

Comments
 (0)