Laravel Url Not Working Properly
I Have Created a Project in Laravel ( ). the Url Is Not Working with out Index. Php. My Current Url Is " but Its Not Working. If I Put " It's Working. How I...
i have created a project in laravel (
).The url is not working with out index.php.
My current url is
"
but its not working.If i put
"
it's working.How I can solve the problem please help me on that.
My current .htacess file has the code like the following
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]
1 Answer
From Laravel Documentarion.
Apache
The framework ships with a public/.htaccess file that is used to allow URLs without index.php. If you use Apache to serve your Laravel application, be sure to enable the mod_rewrite module.
If the .htaccess file that ships with Laravel does not work with your Apache installation, try this one:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Source: