1 week ago

Remove public from laravel url using htaccess

Posted 1 week ago by Deekshith

i have created htacess in root and added below code

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/ [L,QSA]

it is working without public but the problem is if i enter website address then it is adding public at the end automatically. why? any solution?

Please sign in or create an account to participate in this conversation.