Is there any way to condense this into one line:
RewriteRule \.html+(.*)$ index.php?$1 [L]
RewriteRule \.htm+(.*)$ index.php?$1 [L]
I have tried:
RewriteRule \.(html|htm)+(.*)$ index.php?$1 [L]
But it didn’t have the desired effect. Basically I want to check if either the .html and .htm extension is part of the url.
Thanks
Why do you have that plus sign there? It should be like this:
and condensed:
or: