Hello I am using the LG .htaccess Generator (v.1.0.0) on a site where I am using the Pages module to give pages a name with an extension, .html extension to be exact. But I need the pages to not have the trailing slash at the end of .html/. It works with that but when i remove the / in the browser URL it goes to the homepage.
The rewrite code that LG .htaccess Generator (v.1.0.0) writes to the .htaccess file seems like it should work but it isn’t.
It has this rule:
# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]But that’s not working
Any ideas?
Thanks!