i am very new to laravel. i've tried following solution to remove '.public/index.php' from Laravel url.
i have one htaccess file on root and other in public folder.
in root file i've written
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
and in public folder's htaccess file i wrote
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
but nothing worked.
still it opens list of directories in laravel
all i want is to convert my url www.abc.com/public/index.php into www.abc.com/ without removing files from public folder to some other folder type solution.