ASP.NET: URL Masking

I have an ASP.NET web application where I have a Registration.aspx page and an .aspx home page. On my home page, I have a link to the signup.aspx page. I want to hide the extension.aspx file from the address bar when someone clicks on the registration link on the main page. I want to show it as http://mysite.com/signup . Is there any way to do this? I am using VS 2008

early

0


a source to share


3 answers


If you are using ASP.NET 3.5, you might find ASP.NET routing useful.

MSDN page: msdn.microsoft.com/en-us/library/cc668201.aspx

Using it with ASP.NET MVC on ScottGu blog: weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx



Using it with ASP.NET 3.5: www.techbubbles.com/aspnet/aspnet-35-url-routing/

If your site is running ASP.NET 2.0, Helicon ISAPI Rewrite might be a good choice for you. This is an IIS filter that redirects requests to your pages according to a regex based config file. They have a free version for one website.

Take a look at Helicon: www.isapirewrite.com

+4


a source


The easiest way is to just create a folder called "signup" with a default page that redirects to signup.aspx



+2


a source


Another option that is not related to URL rewriting is to use ASP.NET MVC Framework which handles such things easily.

0


a source







All Articles