URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day Afternoon
from my form i used this code.
Response.Redirect("showdetails/" + a);
in my Web.config
Expand|Select|Wrap|Line Numbers
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true">
- <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule"/>
- </modules>
- <validation validateIntegratedModeConfiguration="false"/>
- </system.webServer>
- <rewriter>
- <rewrite url="~/showdetails/(.+)" to="~/details.aspx?id=$1" permanent="true"/>
- </rewriter>
this code rewrite my url like this
example
But i wantto remove that "showdetails" part from url and.
create a valid url like this
example
if i copy paste this link into address bar it must work.
If i remove that string, then other pages(Normal pages ending with extension
like index.aspx) they got error.
can i check extension in web.config.? Or is there is any other way for url rewriting?
Please help me...