Solved

Need help with a Helicon ISAPI Rewrite Rule

Posted on 2009-05-07
3
923 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
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internal to DMZ IIS Authentication. 3 65
Windows IIS SMTP Server Unable to relay emails 12 82
AWS EC2 HTTP & HTTPS 2 81
IIS on Server 2012 R2 Datacenter 5 90
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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