Reputation: 2520
A URL along the lines of https://example.com/admin/products/115717172
will show one product detail. The same is true of a URL which looks like https://example.com/viewProducst.jsp?productId=xxx
.
Every major site uses one of these two styles of URL, or use a page with the name of the specific product.
Is this a load balancing technique? Why are they using this technique instead of passing just one specific code?
Upvotes: 0
Views: 115
Reputation: 5023
The first example is most likely done by a URL rewrite. URL rewriting is done because it is friendlier to read (cleaner and more describing) for both the user and search engine robots (SEO optimization). Here are two good links that I think cover the basics about the subject:
http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/
http://coding.smashingmagazine.com/2011/11/02/introduction-to-url-rewriting/
I've also seen cases where content is more or less static, there are cases like this where it is unnecessary to dynamically generate the content. In this case the final page is either cached in memory, database or on disk to lessen the burden on the server(s).
Upvotes: 2