mhulse / slim-php-boiler

So I can get up-and-running with Slim quickly.
Apache License 2.0
2 stars 0 forks source link

Check add trailing slash via Apache and htaccess #5

Open mhulse opened 7 years ago

mhulse commented 7 years ago

This works great:

RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

The one I am using has more stuff that breaks if ending slashes are not included in routes.

Need to rectify.