Apache RewriteRule nightmare

| | Comments () | TrackBacks (0)

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

0 TrackBacks

Listed below are links to blogs that reference this entry: Apache RewriteRule nightmare.

TrackBack URL for this entry: http://damien.krotkine.com/cgi-bin/mt/mt-tb.cgi/12

Comments

My Flickr

www.flickr.com
Voici un module Flickr utilisant des photos publiques de damsieboy. Cliquez ici pour créer votre module.

My Trips