URL Rewriting | Redirecting URLs with Apache Mod_Rewrite
Apr 14, 2005 PHP, Search Engine Optimization, Web Development
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.
April 18th, 2005 at 8:45 pm
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
April 20th, 2005 at 3:07 pm
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.
April 20th, 2005 at 4:56 pm
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…
April 20th, 2005 at 7:21 pm
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!
April 22nd, 2005 at 7:07 pm
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