Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 02, 2013 09:05 PM by mamoorkhan
Member
64 Points
52 Posts
Feb 25, 2013 10:48 PM|LINK
I am trying to user the UrlReWriting.NET URL Rewriter using regex
my original URL is to be www.mysite.com/Gallery.aspx?image=xxxxxxx
and I need to rewrite it to www.mysite.com/Gallery/xxxxxxx using the following rule
<rewrite url="~/Gallery/(.+)" to="~/Gallery.aspx\?image=$1" />
but it makes my url as www.mysite.com/Gallery.aspx
any help would be appreciated as I need to handover this project to my boss ASAP and this is the only task remaining
Contributor
2350 Points
387 Posts
Feb 26, 2013 05:08 AM|LINK
Give it a try to changing the rule as follows -
<rewrite url="~/Gallery/(.*)" to="~/Gallery.aspx?image=$1" />
Mar 02, 2013 09:05 PM|LINK
I already tried that and it was of no use either.
mamoorkhan
Member
64 Points
52 Posts
UrlReWriting.NET Regex Rule Problem :(
Feb 25, 2013 10:48 PM|LINK
I am trying to user the UrlReWriting.NET URL Rewriter using regex
my original URL is to be www.mysite.com/Gallery.aspx?image=xxxxxxx
and I need to rewrite it to www.mysite.com/Gallery/xxxxxxx using the following rule
<rewrite url="~/Gallery/(.+)" to="~/Gallery.aspx\?image=$1" />
but it makes my url as www.mysite.com/Gallery.aspx
any help would be appreciated as I need to handover this project to my boss ASAP and this is the only task remaining
Pankaj.Sharm...
Contributor
2350 Points
387 Posts
Re: UrlReWriting.NET Regex Rule Problem :(
Feb 26, 2013 05:08 AM|LINK
Give it a try to changing the rule as follows -
<rewrite url="~/Gallery/(.*)" to="~/Gallery.aspx?image=$1" />
mamoorkhan
Member
64 Points
52 Posts
Re: UrlReWriting.NET Regex Rule Problem :(
Mar 02, 2013 09:05 PM|LINK
I already tried that and it was of no use either.