i am currently using IIS7's Url Re-write module, but the main loophole of using the IIS7's url re-write module, is that i have to write rule for all the page,which i want to use on the website, i want to use a comman rule and redirect it to particular page (say homepage) and using global.asax i can redirect it to desired page...
Is it possible with url re-write or is there any tool available i can use for this purpose, or a code sample that could help me doing this.
i dont want extension in the url.
i have pages like index.aspx, news.aspx, artists.aspx, lessons.aspx... i want the urls like index, news, lessons, artists, i created a rule in web.config like
< rewrite>
< rules>
< rule name="urlType1">
< match url="^(\w*)" />
< action type="Rewrite" url="default.aspx" appendQueryString="false" />
< /rule>
< /rules>
< /rewrite>
this will land any page to default.aspx, and then using rawUrl in the global.asax, i am checking for the page like if user has entered "news" then i rewrite to news.aspx
Hope this has helped.