The Dark Arts; .htaccess and mod_rewrite

By Oli
At 4:09 PM · Thursday, 13 November · 2003
To Unix · Weblogging

I’m starting to play with .htaccess and mod_rewrite — voodoo is scary stuff! With tremendous power comes the strong likelihood of stuffing everything up really badly. I wanted to enable RewriteLog to record what my mod_rewrite rules were doing, but I’ve discovered that this can only be implemented in the contexts server config & virtual host. As it isn’t allowed in .htaccess, I was killing my website with “500 Internal Server Error” messages when I tried to use it there. I guess I’ll have to ask my host if they can enable it somehow.

Here are the references I’ve been reading:

Discussion...

Comments (1) · TrackBacks (0)  to  http://www.boblet.net/cgi-bin/mttb-external.cgi/37
1. Comment by oli  · 18 Jan, 2004 · 1:30 PM

SitePoint also has an article about protecting PHP applications from being URL-hacked using mod_rewrite.