I'm moving an old site that has both .htm and .html pages to MODX and the client wants to keep old page names as they were (for SEO reasons).
As I understand, you can only have one suffix at a time (either .htm or .html), but not both.
I tried to solve this through .htaccess file. What I want to achieve is that (1) all pages have .htm suffux [that's done] and (2) when a page pagename.html is requested, the site visitor is automatically redirected to the page pagename.htm, and (3) this rule be generic that is it will work for any page, whatever the alias.
My current .htaccess reads as follows:
php_value default_charset "UTF-8"
AddDefaultCharset UTF-8
RewriteEngine On
RewriteBase /
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Does anybody know a solution?