mcmuney Posted August 2, 2011 Share Posted August 2, 2011 1) I'm currently using urls like this: domain.com/state.php?state=CA (the CA is being used to pull other information from the DB) What I'd like to do is show the url as: domain.com/California 2) I'm currently using urls like this: domain.com/state2.php?city=Los Angeles&state=CA (the CA and Los Angeles are being used to pull other information from the DB) What I'd like to do is show the url as: domain.com/California/Los Angeles Quote Link to comment https://forums.phpfreaks.com/topic/243612-htaccess-mod/ Share on other sites More sharing options...
trq Posted August 2, 2011 Share Posted August 2, 2011 Have you looked at any tutorials on mod_rewrite? Both of your rules are pretty straight forward and would be covered in any introduction tutorial. Quote Link to comment https://forums.phpfreaks.com/topic/243612-htaccess-mod/#findComment-1250926 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.