HTACCESS : Check for slash at the end, except the root of the website

Sunday, July 6, 2014

What I want to do is to do something like this :

Option -Indexes

But I want to redirect every page that is in Option -Indexes to another page, for example, /locked.html.

How can I simply do this?

I hope I only need to use one RewriteRule if possible.