This is a migrated thread and some comments may be shown as answers.

ASP.NET 4.0 + UrlRewrite

2 Answers 97 Views
Getting started with ASP.NET
This is a migrated thread and some comments may be shown as answers.
Daniel Plomp
Top achievements
Rank 2
Daniel Plomp asked on 01 Jun 2010, 09:32 AM
Hi all,

Just a question about Url Rewriting in ASP.NET 4.0.
I was wondering how to rewrite this url:

http://www.mysite.com/default.aspx

to

http://www.mysite.com/

How can I achieve this with URL Rewriting in ASP.NET 4.0?

Thanks,
Daniel

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 01 Jun 2010, 10:30 AM
Hello Daniel,

Information on how to implement Url routing with ASP.NET 4.0 can be found in this blog post by Scott Guthrie. I hope that you will find it helpful.

Best regards,
Sebastian
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Daniel Plomp
Top achievements
Rank 2
answered on 01 Jun 2010, 10:34 AM
Hi Sebastian,

I followed that post for some pages in my website which have parameters, like in the example.
But I couldn't find how to rewrite ~/Default.aspx to nothing e.g. "/".

Daniel
Tags
Getting started with ASP.NET
Asked by
Daniel Plomp
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Daniel Plomp
Top achievements
Rank 2
Share this question
or