Diary of a geek

July 2005
Mon Tue Wed Thu Fri Sat Sun
       
22

Andrew Pollock

Categories

Other people's blogs

Subscribe

RSS feed

Contact me

JavaScript required


Friday, 22 July 2005

Apache 2's mod_rewrite behaves differently?

There's always got to be something that doesn't quite work the same when you upgrade from Apache 1.3 to 2.0 hasn't there?

The small bunch of rewrites that I had that made changelogs.debian.net do its thing seem to be causing circular redirects under Apache 2.

Here's what I had under Apache 1.3:

RewriteEngine on
RewriteRule ^/Pics - [L]
RewriteRule ^/logos - [L]
RewriteRule ^/default.css - [L]
RewriteRule ^/favicon.ico - [L]
RewriteRule ^/$ http://%{SERVER_NAME}/index.php [L]
RewriteRule ^/(.*)$ http://%{SERVER_NAME}/changelog.php [NE]
#RewriteRule ^/(.*)$ http://%{SERVER_NAME}/redirector.php [NE]

I basically want every non-image, non-CSS, non-index.php request to be internally redirected to changelog.php, where it will parse up and interpret the URI and do stuff accordingly.

[14:13] [tech] [permalink]