Solved

Need help with a Helicon ISAPI Rewrite Rule

Posted on 2009-05-07
3
913 Views
Last Modified: 2013-12-24
Can anyone point out what I'm doing wrong below... I'm pretty sure IIS and everything else is configured right because I've ran simple examples already that have worked by placing rules in the ".htaccess" folder of the "virtual-directory"....

=================

TRYING TO PASS THIS IN THE URL:

/virtual-directory/product_some-product-title-here_1234.htm

REWRITE RULE:

RewriteRule /virtual-directory/product_(true|false)(?:_([^/?._]+))?\.htm /virtual-directory/product/stat.cfm\?title=$1?2&id=$2: [I,L]

=================

Note that I'm currently running this on a local development computer first, so the IIS mapped "virtual-directory" will be non-existent when I go live. Here's a break down of the url structure I'm trying to do:

product_[some-product-title-here]_[1234].htm

The first bracketed section equals (title=) and the second would be (id=) in the rewrite rule.

=================

SYSTEM SETUP:

IIS, cold fusion, Helicon ISAPI Rewrite (full edition)

=================

As of this writing I'm getting the standard IIS "The page cannot be found".  I'm banging my head against a wall... any help would be great.  

Thanks.

0
Comment
Question by:goldentine
3 Comments
 
LVL 7

Accepted Solution

by:
ShytKicker earned 250 total points
Comment Utility
That REGEX seems extremely complicated. HeliconTech.com has a forum and the admin always helps out with the REGEX over there. Try asking there.
0
 
LVL 16

Assisted Solution

by:duncancumming
duncancumming earned 250 total points
Comment Utility
/virtual-directory/product_(true|false)(?:_([^/?._]+))?\.htm

not sure what the true|false bit is doing.  or indeed the rest of the regex, it does seem complicated.
I'd probably try and write this regex like
 /virtual-directory/product_([[:print:]]+)_([[:print:]]+)\.html
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now