How can i route site root page(default page without any query string) to default.aspx and route default.aspx?page=x (x is a number) to items.aspx?page=1?

for example: » default.aspx » items.aspx?page=1

I'm using something like this, but doesn't work:

routes.MapPageRoute("Default1", "{*page}", "~/items.aspx")  
routes.MapPageRoute("Default2", "", "~/default.aspx")  

I can't use page as routing parameter(something like because urls is indexed by Google and i don't want to change them.

Related posts

Recent Viewed