mod_rewrite vs. me round two
February 1st, 2003
I’m proud to say mod_rewrite is no longer kicking my ass.
Sometimes it is the little details that kill you. My whole problem stemmed from the fact I was trying to declare my rewrite rules inside of a location block in my apache configuration file.
Now with that fixed I can finally use mod_rewrite to secure the author logins to MovableType. This is fairly simple to do by using mod_rewirte to manipulate the URL requests for mt.cgi. To do this I used the following rule:
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^/movabletype/mt.cgi(.*) https://cellini.homeip.net/movabletype/mt.cgi$1 [R,L]
Recent Comments