URL rewriting Options
imayat12
Posted: Tuesday, January 29, 2008 10:39:25 AM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Guys,

I am trying to do some url rewriting but not quite working here is what i have:

Code:

<add name="campaignRewrite"
virtualUrl="^~/brandcampaign"                     
destinationUrl="^~/campaign/brandcampaign"
redirect="Application"
ignoreCase="true" />



I have a campaign page with bunch of pages in it. I want user to be able to hit

http://mysite/brandcampaign and that will goto actual page http://mysite/campaign/brandcampaign

I just get blank page. Without url rewrite the url http://mysite/campaign/brandcampaign works. Please note I have enabled directory urls and that all works.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
bruceb
Posted: Tuesday, January 29, 2008 11:34:22 AM
Rank: Devotee

Joined: 9/7/2007
Posts: 32
We are using directory URLs and I managed to get the URL rewriting to work with the following attributes:

Code:

<add name="campaignRewrite"
        virtualUrl="^http://mysite/brandcampaign"
    destinationUrl="http://mysite/campaign/brandcampaign"
    redirect="Domain"
    redirectMode="Permanent"
    ignoreCase="true" />


Cheers,
Bruce
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.