Tell me more ×
Answers OnStartups is a question and answer site for entrepreneurs looking to start or run a new business. It's 100% free, no registration required.

I am creating a service that help users connect with local vendors in a certain niche.

Each vendor currently has a URL in the form:

http://example.com/vendor/<id>/<vendor-name-slug>

For example: http://example.com/vendor/5839/the-widget-store

It was suggested to me that it would be better to structure the URLs in this form:

http://example.com/<vendor-name-slug>/<geographic-location>/<id>

For example, http://example.com/the-widget-store/nyc/5839

The argument being that a likely Google search would be "the widget store nyc", and the restructured URL would more closely match the search term. Also dropping the "vendor" part of the URL to make it shorter - although for this I would argue it would also give Google the information that the link is about a vendor.

Is there anything to this, or is it merely nitpicking (i.e. bikeshed problem)?

(By the way I'm new to this site but I love the content and community and hope to be able to contribute at some point.)

share|improve this question

2 Answers

up vote 5 down vote accepted

You will have to look at your inbound traffic from search engines. Do your end users often include location in their searches, or not? If yes, then having the location as part of the URL will help.

Depending on your web framework, it might be best to have the most significant information at the root of the URL structure, i.e.

http://example.com/<id>/<geographic-location>/<vendor-name-slug>/

Remember to be consistent with uppercase / lowercase letters in the URLs, and trailing slash or not.

share|improve this answer

Since the geographic location is key, put it in the url and toss the vendor name. I'd place the id number either at the beginning or the end, with rules in place to re-direct to something else if the url gets garbled.

What I do for a lot of wordpress sites is this:

http://www.example.com/<post number>/<title of page>/

So it comes out something like this:

http://griftastic.com/42/problems-with-this-ad-acai

So if the actual page title gets garbled, cut off, or changes, the post number (42) makes sure the right post gets seen. This has prevented a lot of 404 errors for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.