I am building a site using a custom Laravel CMS.
In the public directory, there is a physical "resources" directory.
/home/fsk/cms/public/resources/
My site also has a page called resources.
The problem is this resources page keeps redirecting to the resources physical directory. http://ift.tt/2od5t83 It keeps adding the trailing slash.
How do I stop this redirection? Here is my htaccess.
<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]
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire