This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Help with migrate from 2 to 3
Author
Message |
mamchale
Newbie


Joined: 09 March 2011
Posts: 8
Posted: 28 October 2011 at 5:19am

I had a rule that worked fine under version 2:

RewriteRule .*/p([^.?/]+)s([^.?/]+)/.*\.htm? /pages/details.asp\?
ProductID=$1&SectionID=$2

for this url:

http://www.safety-marine.co.uk/anchoring-and-windlass/lofrans-
windlass/lofrans-royal-manual-horizontal-windlass-lofrans.htm?p1200-
s38-

but now that doesn't work, having moved servers and only having the
version 3 of isapi rewrite, I have tried to re-write it using the templates I
have for other rules that work, but am failing! regex is not my string
point!

New rule:

RewriteCond %{QUERY_STRING} ^p=([^-]+)-s([^-]+)- [NC]
RewriteRule ^[^.]+\. /pages/details.asp\?ProductID=%1&SectionID=%2?
[NC,L]

But that is not working! please can anyone help. I going grey quickly!

Thanks

Marc
Back to Top
 
mamchale
Newbie


Joined: 09 March 2011
Posts: 8
Posted: 29 October 2011 at 4:20pm

Fixed it now.
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version