Link to home
Create AccountLog in
Avatar of Brian
BrianFlag for United States of America

asked on

How to Hide URL Extensions

Hello Experts,

I'm using ASP.NET which uses the .aspx extension and I would like if possible to hide the page along with the extension.

For example: If I visit a page http://yourpage.com/index.aspx then I would like to hide index.aspx from the URL. Is this possible and if so how and can I have some help setting that up?

Avatar of Jini Jose
Jini Jose
Flag of India image

yes it is possible through url rewriting.

so after url rewriting your url will be  http://yourpage.com for  http://yourpage.com/index.aspx
and   http://yourpage.com/contactus for http://yourpage.com/contactus.aspx
Avatar of Rainverse
Rainverse

Here's a link describing what gmailjini suggested.  

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

-MJC
Avatar of Brian

ASKER

I'm not sure which method I should use from the many methods mentioned in both of your URL's that you have posted. Please see what I'm working with below.

ASP.NET
C#
Windows 2003 Server with IIS6.
url rewriting is the only method available for your case
Avatar of Brian

ASKER

@gmailjini:

I understand that. Can you answer my question in post 37107772?
ASKER CERTIFIED SOLUTION
Avatar of Member_2_4913559
Member_2_4913559
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer