O'Reilly logo

ASP.NET MVC 2 Cookbook by Richard Kimber, Andrew Siemer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making hackable URLs for a product catalog

When designing your URL scheme you might consider trying to make hackable URLs. By this I mean to say that your URLs should be able to support user manipulation. A URL such as Product/Details/2 is fine for displaying a product, but it doesn't show any information for Google to slurp up when ranking your site; it also doesn't provide any additional navigational abilities to your viewing customer, it just shows a product. Now take the following URL: Catalog/Computers/Laptops/Toshiba/Satellite-650. With this sort of URL, you are providing your customers with the ability to remove the specific laptop Satellite-650 and display all of the laptops that Toshiba makes. You could further remove the Toshiba from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required