Hbug
Hbug

Reputation: 177

How to do friendly URLs work with slashes in the end?

My .htaccess file has the current setting:

Options -Indexes

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1\.php

When I enter mydomain.com/file it's ok, but when I access mydomain.com/file/ I get error 500.

There's no folder called "file", this problem appears with any path.

Upvotes: 0

Views: 174

Answers (1)

Capsule
Capsule

Reputation: 6159

Try adding -MultiViews to your Options. If it still breaks, look at the apache error_log, you'll get the full explaination of what's going wrong.

Upvotes: 1

Related Questions