Hi! I got problems with the following two lines:
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+[^/])$ /$1.html [L]
Goal: Redirecting "domain.tld/test/" (only if test.html exists) so that it outputs the contents of "domain.tld/test.html".
- How to make this case-insensitive: "domain.tld/Test" -> domain.tld/test.html **
- How to make it accept a trailing slash: "domain.tld/test/" should work, too
Thanks!
** I couldn't get RewriteMap lowercase int:tolower to work, any help appreciated.