This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Rewrite Rule Problem APE and Coldfusion 9
Author
Message |
dadonk
Newbie


Joined: 10 March 2010
Posts: 5
Posted: 14 March 2011 at 9:08pm

I'm migrating from ISAPI Rewrite 3/IIS6/Coldfusion 8/Win2003 to APE/IIS7/Coldfusion 9/Win 2008 and having the
following issues.

This part of my .htaccess file is working:

# Adds www. to non-www. urls that start
RewriteCond %{HTTP_HOST} ![0-9]{1,3}\.[0-9]{1,3}\.
RewriteRule !"" http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC]

But this part isn't, it gives me a 404 file not found for the path I have in the URI:

RewriteRule ^(.*?)/articles/attraction/(.*)/(.*).cfm $1articles/index.cfm?id=$2&original_url [NC,QSA]

This works fine in ISAPI Rewrite on Win 2003 IIS 6.

Here is the whole .htaccess file.

# Helicon Ape version 3.0.0.61

RewriteEngine On

# Adds www. to non-www. urls that start
RewriteCond %{HTTP_HOST} ![0-9]{1,3}\.[0-9]{1,3}\.
RewriteRule !"" http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC]


RewriteRule ^(.*?)/articles/attraction/(.*)/(.*).cfm $1articles/index.cfm?id=$2&original_url [NC,QSA]
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 15 March 2011 at 5:38am

Hello,

It must work, but try to replace it with:

Code:
RewriteRule ^([^/]+)/articles/attraction/([^/]+)/[^.]+.cfm $1articles/index.cfm?id=$2&original_url [NC,QSA]


Please, provide rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 
dadonk
Newbie


Joined: 10 March 2010
Posts: 5
Posted: 15 March 2011 at 8:25am

This doesn't work either.

C:\Program Files (x86)\Helicon\Ape\rewrite.log is empty

And the FAQ you're linking to is for ISAPI Rewrite, I'm trying to migrate to
APE as noted in the first post.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 15 March 2011 at 8:58am

FAQ in this case is quit universal. Directives are just the same.
You need to use them in httpd.conf ONLY. RewriteLogLevel 9 - is the one you need for rewrite.log.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version