I spent 2 hours banging my head against the wall regarding Apache RewriteRule. What I wanted was simple :
- Redirect every http:// URLs to https://
- Except if it's the atom or RSS URL
- Redirect the https://.*atom.xml or rss URL to http://
And I failed. I couldn't make a pattern that says : "that doesn't end with atom.xml" or similar...
So I ended up with a compromise : only redirect /cgi-bin/mt URLs to https://. It works but I'm not quite satisfied. I'll give it another try later
