Thursday, October 27

Geek

Shiny Happy mod_rewrite

mod_rewrite is your friend. It is not that confusing (once you've spent an hour or two reading the documentation and the examples... twice) and it is very powerful.

For example, if your software only lets you set up blogs as mu.nu/blogname and you really want it to appear at blogname.mu.nu, mod_rewrite will do that for you. You can stick it in an htaccess file, and it will still work (it does this by magic). It works even if blogname.mu.nu is on a different server to mu.nu/blogname. (And if you happen to have a cluster, this means you can effectively use the bandwidth of all of the servers.) You can redirect this but not that if that's what you need. You can even, with a little tweaking, automate the creation of the rulesets.

This may mean that I can use an existing CMS rather than having to write one myself. Further research is definitely indicated.

Posted by: Pixy Misa at 02:28 AM | Comments (2) | Add Comment | Trackbacks (Suck)
Post contains 160 words, total size 1 kb.

1 I'm using it myself, but recently I tried to modify my files to do something new and it was an abject failure. Part of my problem was that I couldn't actually find any competently written documentation on it. Where the heck did you find such a beast?

Posted by: Steven Den Beste at Thursday, October 27 2005 03:03 AM (CJBEv)

2 I didn't. I just read all of the documentation (including the examples) twice, and then played around with it until I got it working.

Posted by: Pixy Misa at Thursday, October 27 2005 03:07 AM (RbYVY)

Hide Comments | Add Comment

Comments are disabled. Post is locked.
45kb generated in CPU 0.0139, elapsed 0.1629 seconds.
56 queries taking 0.1539 seconds, 327 records returned.
Powered by Minx 1.1.6c-pink.