Welcome to WebmasterWorld Guest from 184.108.40.206
However, I would like to limit this redirection to files that are in my root directory and exclude subdirectories from the redirect rule.
It would be fine to exclude all subdirectories or just exclude specific ones; I don't care.
Is there a way to do this?
Welcome to WebmasterWorld [webmasterworld.com]!
Redirect any URL which contains a slash followed by any number of characters which are not a slash, followed by ".html" to a resource of the same name in root, but without a file extension:
RedirectMatch permanent ^/([^/]*)\.html$ http://mysite.com/$1