?
Solved

Need help with a Helicon ISAPI Rewrite Rule

Posted on 2009-05-07
3
Medium Priority
?
929 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 1000 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 1000 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 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