Hi. I am trying to follow directions from the forums to rewrite my Search and ShowAd page urls. The instructions I tried to follow were from an old posting about a site
www.pagineannunci.it and they seemed to work on that site so I copied them exactly as I could.
I have copied UrlRewritingNet.UrlRewriter.dll into my bin directory and added the following to my web.config file. My site didn't crash, but my url didn't change either. Has anyone successfully added
the category and title description to the ShowAd url in place of the ID number? Thanks for any help.
Hi. Thanks for the suggestion. I'm a beginner at this and couldn't make head or tails of the instructions at that link. Actually, I have a stack of articles, blog entries, and forum posts with many different suggestions that I can't seem to follow. I
think I'm supposed to download a dll (I've done rewriter and another one) to my bin directory and then make some changes to my web.config file and then make some changes to my ShowAds.vb file. Has anyone rewritten the ShowAds page so the url will be something
like ShowAds/category/adTitle.aspx? I would really appreciate simple, detailed instructions, or a link to instructions for beginnners with code in vb. Thanks
redwoodbev
Member
29 Points
166 Posts
Friendly Urls/rewriting
Dec 15, 2008 03:34 PM|LINK
Hi. I am trying to follow directions from the forums to rewrite my Search and ShowAd page urls. The instructions I tried to follow were from an old posting about a site www.pagineannunci.it and they seemed to work on that site so I copied them exactly as I could.
I have copied UrlRewritingNet.UrlRewriter.dll into my bin directory and added the following to my web.config file. My site didn't crash, but my url didn't change either. Has anyone successfully added the category and title description to the ShowAd url in place of the ID number? Thanks for any help.
<configSections>
<section name="urlrewritingnet"
restartOnExternalChanges="true"
requirePermission="false"
type="UrlRewritingNet.Configuration.UrlRewriteSection,
UrlRewritingNet.UrlRewriter" />
</configSections>
<urlrewritingnet
rewriteOnlyVirtualUrls="true"
contextItemsPrefix="QueryString"
defaultPage ="default.aspx"
defaultProvider="RegEx"
xmlns="http://www.urlrewriting.net/schemas/config/2006/07" >
<rewrites>
<add name="one" virtualUrl="^http\://(.*)/(.*)/cat(.*).aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/ShowAd.aspx?c=$3&NomeCat=$2"
rewrite="Domain"
ignoreCase="true"/>
</rewrites>
</urlrewritingnet>
<system.web>
<httpModules>
<add name="UrlRewriteModule"
type="UrlRewritingNet.Web.UrlRewrieModule, UrlRewritingNet.UrlRewriter" />
</httpModules>
</system.web>
Chauhan Yati...
Member
14 Points
6 Posts
Re: Friendly Urls/rewriting
Dec 16, 2008 07:32 AM|LINK
http://msdn.microsoft.com/en-us/library/ms972974.aspx - may help you
redwoodbev
Member
29 Points
166 Posts
Re: Friendly Urls/rewriting
Dec 17, 2008 07:23 AM|LINK
Hi. Thanks for the suggestion. I'm a beginner at this and couldn't make head or tails of the instructions at that link. Actually, I have a stack of articles, blog entries, and forum posts with many different suggestions that I can't seem to follow. I think I'm supposed to download a dll (I've done rewriter and another one) to my bin directory and then make some changes to my web.config file and then make some changes to my ShowAds.vb file. Has anyone rewritten the ShowAds page so the url will be something like ShowAds/category/adTitle.aspx? I would really appreciate simple, detailed instructions, or a link to instructions for beginnners with code in vb. Thanks
classified ads starter kit url rewriting