dimanche 27 novembre 2016

/ in url not working in laravel

http://localhost/projectname/admin is working proper but when i m trying to implement same with http://localhost/projectname/admin/ its giving "Object not found!" error 404. This is my .htacces.

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

so how can i solve this with trailing / in url ? Thanks in advance.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fqTdzP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire