Last post Mar 10, 2011 03:19 PM by atconway
Mar 10, 2011 04:00 AM|zulfiqarnoor|LINK
If i want to add the support of multicities in my classied ads website then one way is to store the city in session or cookies when user select any city. The other approaches which i saw are adding the subdomains to the site. Like olx.com.pk when i select
Lahore then it changes to Lahore.olx.com.pk. I want to know what is the benefit of this approach and why most of the sites are using this apporach. How it can be done ?
Mar 10, 2011 03:19 PM|atconway|LINK
I want to know what is the benefit of this approach and why most of the sites are using this apporach
You could use URL Rewriting to include the city name in your URL and make it more readable to the end user. The main advantage to this method vs. hiding it behind the scenes in something like a session variable is that the URL is searchable and helps search
relevancy on search engines. The session value will not help you in this matter. Things like bookmarking and organization too are advantages of modifying the URL to include your City name.
The following article might help:
Tip/Trick: Url Rewriting with ASP.NET: