I moved Laravel file to subfolder and hit url localhost/test/public
it's working fine but I want to use url localhost/test
. I put .htaccess
in test folder but than localhost/test
showing 404
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
create a .htaccess file in your root path
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With