Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help with a Helicon ISAPI Rewrite Rule

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

Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

Question has a verified solution.

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

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…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

636 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