Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop
Right. I've got two websites, identical except:
one is file system based and uses Intelligencia's Urlrewriter.
the other is IIS based and uses its own urlrewriter.
The file system based version works fine and all the Urls are rewritten and parsed for their querystrings correctly.
The IIS based version rewrites the Urls correctly but when I come to parse the parameters out the querystrings are not correct.
e.g The web.config contains:
<rule name="DepartmentCategoryPageReWrite" stopProcessing="true">
<match url="^.*-d([0-9]+)/.*-c([0-9]+)/page-([0-9]+)/?$" />
<action type="Rewrite" url="Catalog.aspx?DepartmentId={R:1}&CategoryId={R:2}&Page={R:3}" />
So with a Url of:
http://www.example.com/Test_Department-d1/Test_Category-c1/Page-1/
I'd expect to get three values 1 and 1 and 1.
But I get 1,1 and 1,1 and 1,1
Bu$gered if I know whats going on!
lowercase "page" in regex vs "Page" in URL ?
Actually that's probably b*ollx as in that case you'd not get any results out.
Hmm, I'll correct that. But when I test this rule in IIS it works fine.
