What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 26160 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > Rewrite all pages in ASP.net website ...
Jpchoudhari

Rewrite all pages in ASP.net website

Replies: 1 | Posted by: Jpchoudhari on 6/19/2012 | Category: ASP.NET Forums | Views: 239 | Status: [Member] | Points: 10  


hi,

I am developing a asp.net website and I want to define custom URLs for all my existing pages and newly added pages

for ex I want to show www.domain.com/home instead of www.domain.com/home.aspx
and www.domain.com/aboutus instead of www.domain.com/aboutus.aspx

what should I use rewriting or routing and in either case how I can add rules or routes dynamically as admin panel of this site has a option to add pages dynamically

Kind Regards,
Jay


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Ajay.Kalol
Ajay.Kalol  
Posted on: 6/19/2012 12:21:41 AM
Level: Starter | Status: [Member] | Points: 25

Use URL rewriting for this,

http://blogs.iis.net/ruslany/archive/2009/04/08/10-url-rewriting-tips-and-tricks.aspx

http://ajaypatelfromsanthal.blogspot.in

Jpchoudhari, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 1:23:28 PM