Quick Nav:  Online Store   |   Login | Register
PrevPrev--NextNext
URL Rewriting
Last Post 29 Jan 2010 07:35 AM by Paul Hallam. 0 Replies.
Please Register to participate.
Sort: Print topic: Printer Friendly
AuthorMessages
Paul Hallam
New Member
Posts:8


Send PM:Send Private Message

--
29 Jan 2010 07:35 AM
Hi,
I'm trying to use the ResourceLocationTable.config to rewrite URLs and I can't get it to work. I have pages that display details on a particular product based on a querystring parameter and I am trying to create a virtual path that doesn't use parameters and gets rewritten appropriately by PageBlaster.
For example:
The URL is /dresses/brand.aspx?product.jpg
I would instead like to use /dresses/brand/details/product.aspx to access this page.
The rule I created is:
<resourceLocationItem
virtual-path="(/dresses/\w+)/details/(\w+\.)aspx"
url="$1.aspx?img=$2jpg"
method="Rewrite" isPattern="True" />

When I try and browse to /dresses/brand/details/product.aspx I get "resource cannot be found" with a requested URL of /dresses/brand/details/$1.aspx

Can I achieve this? Should my rule work?

I'm using V3.4.5 of the PageBlaster dll.

Thanks... Paul
Please Register to participate.

Active Forums 4.1
     
      
Powered by: Snapsis Software