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:
- Using .htaccess Files with Apache by Ken Coar
- Apache Tutorials; .htaccess files
- Comprehensive guide to .htaccess by Feyd
- Module mod_rewrite; URL Rewriting Engine, the Apache 1.3 manual reference
- Module mod_rewrite Tutorials (1-4) by Dirk Brockhausen (half way down)
- Apache 1.3 URL Rewriting Guide by Ralf S. Engelschall
Discussion...
- 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.