Need help regarding urls reading

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nikhil.deshmukh
Forum Newbie
Posts: 7
Joined: Sun May 08, 2005 11:13 pm

Need help regarding urls reading

Post by nikhil.deshmukh »

See i just want the url to read

from my code which is
http://www.example.com/page.php?state_id=23&city_id=1

to

http://www.example.com/state_name/city_name/


how that can be implemented
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Search the forums or google for "mod_rewrite"
mentor
Forum Contributor
Posts: 100
Joined: Sun Mar 11, 2007 11:10 am
Location: Pakistan

Post by mentor »

aaronhall, don't be so harsh.

But you must do as aaronhall suggested. You will find a lot of stuff regarding this.

Take a look at this article. If you still face any problem, post it here.
http://corz.org/serv/tricks/htaccess2.php
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

aaronhall wrote:Search the forums or google for "mod_rewrite"
Sorry, mentor. I was out of line.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

aaronhall wrote:Sorry, mentor. I was out of line.
I can't agree with that.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Sorry -- I need to find the bbcode for sarcasm
Post Reply