html - Hyperlink to specific page or folder with default document? -
html - Hyperlink to specific page or folder with default document? -
we in process of redesigning our company's web site, , have been told consultants of import either:
1.) link specific page i.e. foo.com/buy/default.aspx
or -2.) link directory , allow default document load i.e. foo.com/buy/ "default.aspx" default document
is there practical benefit either approach? beingness 100% consistent in doing 1 or other gain anything?
in first example, linking specific page helps prevent ambiguity in urls. prefer canonical url (can or without file extension). if have have multiple urls single resource, illustration /products/product1.aspx , products?productid=product1, take advantage of canonical url property in code specify proper one.
using extensionless urls allows alter technologies later. example, /blog/post1.aspx different /blog/post1.php, if ever switched wordpress (not common, of course, happens). it's easy way create links work no matter technology. plus, in sentiment it's improve to, much possible, mask technology stack you're using possible. extensionless urls becoming norm (in opinion) people seem moving more toward api-based approach uris resources, , mixed technology stacks.
html asp.net web responsive-design
Comments
Post a Comment