Solved

Need help with a Helicon ISAPI Rewrite Rule

Posted on 2009-05-07
3
927 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
ShytKicker earned 250 total points
ID: 24345223
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
ID: 24348846
/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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
What You Need to Know when Searching for a Webhost Provider
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

695 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