Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to hide extension of webpages for example i have (ex: product.aspx) page but i want to display products how to hide .aspx extension.

What I have tried:

I have search through online but don't get any clear solutions.Help me.
Posted
Updated 18-Apr-16 1:48am

It's called "URL rewriting" and google has many, many examples.
Here are the articles it found here, for example: URL Rewriting - Google Search[^]
 
Share this answer
 
There are couple of ways to hiding URL
1. URL rewriting (given above)
2. ASP.NET routing
with the help of 'HttpApplication.Context.RewritePath' you can re-write URL
see below snippet
.Net Technology: How to hide ASP.Net web page name or .aspx extension[^]
3. Using an HttpModule to Perform Extension-Less URL Rewriting with IIS7
4. ISAPIRewrite to enable Extension-less URL Rewriting for IIS5 and IIS6
see below link, it will be helpful to you
ScottGu Blog - Tip/Trick: Url Rewriting with ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900