This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Cannot get APE to work on IIS7
Author
Message |
jamesnoony
Newbie


Joined: 15 April 2009
Posts: 25
Posted: 14 October 2010 at 6:46am

Hi

I have bought APE and installed on my server, its running on IIS7.

I am trying with some test code that was working under ISAPI_Rewrite on an IIS6 server. It is a classic ASP website, the application pool for this site is set as Integrated mode.

Here is some of my basic test code from within .htaccess

# Helicon ISAPI_Rewrite configuration file

# Version 3.1.0.78

RewriteEngine on

RewriteBase /

 

### Categories ###

#to use relative paths in RewriteMap, map files must reside in the same folder as .htaccess

RewriteMap cat-mapfile txt:MapFile_Category.seo [NC]

RewriteMap cat-revmapfile txt:MapFile_Category_rev.seo [NC]

# Redirect: /category.asp?id=3 => /banjos

RewriteCond %{REQUEST_FILENAME} %{DOCUMENT_ROOT}/category\.asp$ [NC]

RewriteCond %{QUERY_STRING} ^id=(\d+)$ [NC]

RewriteCond ${cat-mapfile:%1|NOT_FOUND} (.*)

RewriteCond %2 !NOT_FOUND

RewriteRule ^category\.asp$ /%2? [NC,R=301,L]

# Getting content from /category.asp?id=3 when requesting /banjos

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond ${cat-revmapfile:$1|NOT_FOUND} (.*)

RewriteCond %1 !NOT_FOUND

RewriteRule ^(.+)$ /category.asp?id=%1 [NC,L,NS]

The log files are being generated, here is some output from them.

86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (1) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] init rewrite engine with /category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (5) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] strip matching prefix: /category.asp -> category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (3) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] applying pattern ^category\.asp$ to uri category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (4) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] RewriteCond: input='C:\inetpub\wwwroot\MMAYard\build-htdocs\category.asp' pattern='%{DOCUMENT_ROOT}/category\.asp$' => not-matched
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (5) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] strip matching prefix: /category.asp -> category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (3) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] applying pattern ^(.+)$ to uri category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (4) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] RewriteCond: input='C:\inetpub\wwwroot\MMAYard\build-htdocs\category.asp' pattern='-f' => not-matched
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (5) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] strip matching prefix: /category.asp -> category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (3) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] applying pattern ^products\.asp$ to uri category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (5) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] strip matching prefix: /category.asp -> category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (3) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] applying pattern ^(.+)$ to uri category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (4) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] RewriteCond: input='C:\inetpub\wwwroot\MMAYard\build-htdocs\category.asp' pattern='-f' => not-matched
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (5) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] strip matching prefix: /category.asp -> category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (3) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] applying pattern ^(.+)$ to uri category.asp
86.2.225.142 86.2.225.142  [14/Oct/2010:06:10:30] [mma.chameleon-web.co.uk/sid#3][rid#64712930/initial] (4) [perdir c:\inetpub\wwwroot\mmayard\build-htdocs\] RewriteCond: input='C:\inetpub\wwwroot\MMAYard\build-htdocs\category.asp' pattern='/([^/]+)/([^/]+)$' => not-matched

Please can you advise ASAP, thanks, James 

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 14 October 2010 at 6:58am

Hello,
Why do you need the following condition?
Code:
RewriteCond %{REQUEST_FILENAME} %{DOCUMENT_ROOT}/category\.asp$ [NC]

It causes the issue, according to the log.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
jamesnoon
Groupie


Joined: 07 December 2005
Location: United Kingdom
Posts: 79
Posted: 15 October 2010 at 11:50am

Hi, I replied to your email, please can you join with this session code....

48516135
Back to Top Visit jamesnoon's Homepage
 

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

Printable version Printable version