I want to provide friendlyurls to my visitors on my venue site. Visitors should be able to easily type the name of a region to access the venues in that specific region.
Like
www.mydomain.com/<cityname>
and
www.mydomain.com/<statename>/<cityname>
For example:
www.mydomain.com/houston and www.mydomain.com/texas/houston
Ofcourse this URL: www.mydomain.com/houston is showing the exact same venues as www.mydomain.com/texas/houston
And Google considers this duplicate content. So now I'm thinking of creating a cannonical tag, saying this: www.mydomain.com/houston is my primary URL and point this URL www.mydomain.com/texas/houston to my primary URL.
update: why would I want these 2 urlformats in the first place? Because some visitors would like to know: show me all venues in texas, while others want to see all venues in a specific city, houston in this case. By using this format, users can simply change the url to see venues in a specific area. Also, Google seems to prefer that searchwords occur in the URL and occur in the beginning of the URL, so this way I target users searching on statename AND on cityname.
Is this the best practice?
/<statename>/<cityname>rather than simply/<cityname>? – w3d Dec 31 '12 at 9:40/<statename>/<cityname>? – Floran Dec 31 '12 at 10:21citynameto be unique. In the whole of the UScitynameis not unique, so sometimes you would need to usestatename+citynameto identify the content (even with state+city there are a few duplicates!) So, sometimes you would have a canonical URL that consists of/<cityname>and sometimes/<statename>/<cityname>- and you would have to decided for every city, this adds a confusing layer of ambiguity IMO. – w3d Dec 31 '12 at 11:31/<statename>/<cityname>and/<cityname>(and/<statename>) then the first field refers to 2 types of data. You need to look up both and determine a priority. What does/washingtonrefer to? These ambiguities also mean that users won't necessarily know how to construct the URL if they are typing it. However,/<cityname>could be a handy shortcut, where it is unique, but it wouldn't be the canonical URL. – w3d Dec 31 '12 at 11:36