We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17292f commit 436519fCopy full SHA for 436519f
.htaccess
@@ -1,7 +1,12 @@
1
-RewriteEngine On
2
-RewriteBase /public_html/
+<IfModule mod_rewrite.c>
+ RewriteEngine On
3
4
-RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]
5
-RewriteRule ^ %1 [L,NE,R=302]
+ # Redirect all requests to the public/ directory
+ RewriteCond %{REQUEST_URI} !^/public/
6
+ RewriteRule ^(.*)$ /public/$1 [L]
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