Mod_Rewrite (.htaccess) help
Posted: Mon Aug 16, 2010 11:31 am
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.
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.