Mod_Rewrite (.htaccess) help

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
gth759k
Forum Commoner
Posts: 76
Joined: Mon Jun 15, 2009 3:04 am

Mod_Rewrite (.htaccess) help

Post by gth759k »

I have a page full of links to different types of careers that I would like to make nice urls for so that search engines will hopefully pick them up, but I've only done a couple of .htaccess rules before so I don't know what I'm doing. I have about 400 urls like this ...

example.com/research.php?career=Aerospace+Engineer
example.com/research.php?career=Sales+Associate

and I'd like them be something like ...

example.com/career/Aerospace-Engineer/
example.com/career/Sales-Associate/

and since there are over 400 urls is there a way to make a rewrite rule that automates this? Its important that the new urls link to the same place as the old urls because the research.php script gets the info about the career from a database. Any help would be appreciated. Thanks.
Post Reply