Thursday, March 22, 2012

Shorten URL.

Hi,

how do i shorten URLs in my asp.net application.

for examply if the structure in my ASP.NET application is

www.mysite.com/presentationLayer/Customer/main?uid=10&timeout=90

it looks a long URL and not very much Search engine friendly how do i shorten

these urls in my application.

Thanks.

The concept is known as URL rewriting.

The visitor request a page such aswww.edition3.com/about. When that request gets to the ASP.NET application, that short URL is "rewritten" to the true URL, which might bewww.edition3.com/presentationLayer/presenter.aspx?uid=10.

To learn how to do this, please readURL Rewriting in ASP.NET.


You could create a subdomain that points towww.mysite.com/presentationLayer/Customer/

E.g. when you create a subdomain customer.mysite.com you'll get an url of the form:

customer.mysite.com/main?uid=10&timeout=90

0 comments:

Post a Comment