City Specific Website
Posted: Mon Dec 29, 2008 12:39 am
Hi, I am just trying my site to be city specific for user to select a specific city.
I see lot of sites which are city specific but what I found is two things.
First :- They make pages for every city individually.
Second :- In other sites when i select city in textbox url in page change to something like this.
First it has url like this:http://www.example.com/index.php
After select it has like this : http://www.example.com/Newyork/index.php
The contents are same but it has fetch contents by city.
In second case i think they only rewriting url.
But they are using same page as main index.php or they create page for City which only fetch contents citywise which is found in url.Thats something i didn't understand.
I have in database some tables which has column city.I don't want to change database structure.
I don't want to create new tables for city specific.
So how can i approach to this problem.
What is the optimized solution for this problem?
Please help me
Thanks in advance.
I see lot of sites which are city specific but what I found is two things.
First :- They make pages for every city individually.
Second :- In other sites when i select city in textbox url in page change to something like this.
First it has url like this:http://www.example.com/index.php
After select it has like this : http://www.example.com/Newyork/index.php
The contents are same but it has fetch contents by city.
In second case i think they only rewriting url.
But they are using same page as main index.php or they create page for City which only fetch contents citywise which is found in url.Thats something i didn't understand.
I have in database some tables which has column city.I don't want to change database structure.
I don't want to create new tables for city specific.
So how can i approach to this problem.
What is the optimized solution for this problem?
Please help me
Thanks in advance.