---- .htm to Extensionless URLs - Plus Renaming Files
MarkOly - 8:03 pm on Jun 25, 2013 (gmt 0)
A slightly modified Rule 4 could achieve the same result.
Yeah that's what I was thinking too in my first comments. I kind of threw #3 in there as a sacrificial lamb, leading to the idea of combining it into #4. But then when Lucy opened my eyes to the fact that every single valid .htm request that could ever come through is covered by one of the 80-lines in rule #1, that lead to me just removing #4 completely. Then I thought, you know what, I might as well go all the way and remove everything else that's not essential, since I'm already taxing things with the 80-line rule. Then see what errors come through in my logs and add a rule if needed.
As coded, the first RewriteCond stops the redirect when any of the www. or ftp. or mail. sub-domains are requested by HTTP.
That's what I'm trying to do. I think I should have worded it "#6 - Redirect requests for non-www, non-ftp, or non-mail subdomains to www subdomain." Does that fix it?