I am using ASP.net(c#) for my project. In my my project 2 pages are using URL rewriting method by referring this article
URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day Afternoon
from my form i used this code.
Response.Redire ct("showdetail s/" + a);
in my Web.config
[code=xml]
<system.webServ er>
<modules runAllManagedMo dulesForAllRequ ests="true">
<add name="UrlRewrit er" type="Intellige ncia.UrlRewrite r.RewriterHttpM odule"/>
</modules>
<validation validateIntegra tedModeConfigur ation="false"/>
</system.webServe r>
<rewriter>
<rewrite url="~/showdetails/(.+)" to="~/details.aspx?id =$1" permanent="true "/>
</rewriter>[/code]
these are the code i used.
this code rewrite my url like this
example
But i wantto remove that "showdetail s" 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...
URL Rewriting using Intelligencia UrlRewriter Example 1 - Blog Day Afternoon
from my form i used this code.
Response.Redire ct("showdetail s/" + a);
in my Web.config
[code=xml]
<system.webServ er>
<modules runAllManagedMo dulesForAllRequ ests="true">
<add name="UrlRewrit er" type="Intellige ncia.UrlRewrite r.RewriterHttpM odule"/>
</modules>
<validation validateIntegra tedModeConfigur ation="false"/>
</system.webServe r>
<rewriter>
<rewrite url="~/showdetails/(.+)" to="~/details.aspx?id =$1" permanent="true "/>
</rewriter>[/code]
these are the code i used.
this code rewrite my url like this
example
But i wantto remove that "showdetail s" 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...
Comment