URL Rewriting | Redirecting URLs with Apache Mod_Rewrite

Bu$ter turned me on to the cool idea of SE friendly URLs. After doing a little looking around I ran into this Apache Module that would do just that.

I have a few sites w/ friendly URLs but I’ve always scripted it out using the that idea. This takes a little time and always run into obstacles on the way. So this might be a good alternative, plus it can be used w/ pre-existing scripts.

Links & Articles

5 Responses to “URL Rewriting | Redirecting URLs with Apache Mod_Rewrite”

  1. buster Says:

    hey maabsta… sorry i didnt mention the re-write to ya before… i actually thought that’s what u were doing… since i saw your various sites url format change a bit after we discussed the 404 solution. url rewriting is definetly cool… and it can be done on windows now too… thank goodness.

    in fact i do some apache mod rewrites on my personal site… my various resume pages from my sound bytes page:
    http://www.bustercollings.com/sounds/

    o and of course i’m doing it on my blog too… i’m surprised u havent set your up to do it… yet?

    later,
    bu$ter


  2. Casey Says:

    Yeah, Wordpress can be set to use mod_rewrite right out of the box, as long as your web server supports it. Just set an option on the admin site, and you’re all set.


  3. buster Says:

    u know i’m not on the new version… but the one ive got u have to copy the mod scripts to the .htaccess file… it should just let u click a button… maybe its because i lock down my directories (disable writing)… u know to fight off the bad element…

    anyways… i should prob upgrade… but before i do i want to rebuild the gui… im not happy with the front end on WP…. maybe i’m talking about a new skin… all i know is i’m wanna rework the code a bunch

    uh… but rewriting good… long querystring bad… :-)


  4. James Says:

    yeah, i have known about the rewrite mod before, but have never used it.
    I guess I could try it out on my blog.. huh…duh…

    but i do have a site i’m gonna redo at the begining of may, and I’m gonna try it out there. should be nice!!!

    on the current sites I have now w/ friendly URLs like I said was done by scripting. those are just simple scripts that would not really need something as robust as the rewrite mod, and I just wanted to play around w/ a dynamic 404 page.

    that is just so cool I think!


  5. buster Says:

    yeah i like the 404 style… being able to script in logic is a certain benefit of using 404s whereas the rewrite simply masks the real url and querystring pairs… it’s all good… so i’ve heard


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>