Posts Tagged ‘htaccess’

My day with mod_rewrite

Tuesday, May 20th, 2008

I’m a big fan of the Image Redirection script at ImgRed.com. It’s a great script to handle one of the most annoying things out there – posting images that are already hosted somewhere on the internet at another host. There’s no need to be ‘that guy’ who leeches bandwidth that isn’t his, and I’ve found that some other free image hosting services can be limited in functionality or tedious to use on their own.

Anyway, the script is something that I had set up at my old site with relatively little effort.  The one thing that continually trips me up on setting it up, though, is making it all nice with Apache’s mod_rewrite functionality, which, for some reason, decided to give me fits on my new server.

Granted, I’m no god of mod_rewrite – setting up regex is hard enough when you can easily see and debug the output!  (more…)