This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Map File is not working
Author
Message |
EvolveX
Newbie


Joined: 15 December 2009
Posts: 4
Posted: 01 November 2011 at 10:39pm

Hello,

Have the following in a .htaccess (commercial version):

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.69

RewriteEngine on
RewriteBase /

RewriteMap mapfile txt:C:\Inetpub\vhosts\rapidclassified.com\httpdocs\cindex.txt
RewriteRule /([^?/]+)\.rc /cindex.asp?id=${mapfile:$1} [NC]


RewriteRule ^(.*?view(?:ad|_print|scat))~([^/]*)\.(\d*)\.html$ $1.asp?id=$3 [NC]
RewriteRule ^(.*?viewlist)~([^/]+)\.(\d+)\.(\d)\.(\d+)\.html$ $1.asp?sid=$3&sa=$4&page=$5 [NC]
RewriteRule ^(.*?viewsublist)~([^/]+)\.(\d+)\.(\d+)\.html$ $1.asp?\3id=$3&page=$4 [NC]
RewriteRule ^(.*?)search~([^/]+)$ $1advsearch.asp?AST1=$2&dosearch=dosearch&ASD5=3&ASD2=1&ASD4=1 [NC]



The map file is here: http://www.rapidclassified.com/cindex.txt

Have ALL rules working properly except for the rule for map file - redirects to 404.

Example: http://www.rapidclassified.com/ads_posting_policy.rc

Same configuration works fine at home computer

Please help.
Thanks.


Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 02 November 2011 at 5:43am

Hello,

Depending on the build, you may need to apply the following rule:
Code:
RewriteRule ([^?/]+)\.rc /cindex.asp?id=${mapfile:$1} [NC]

instead of
RewriteRule /([^?/]+)\.rc /cindex.asp?id=${mapfile:$1} [NC]

You may provide the rewrite.log for the testing request. Logging issues described in FAQ

Regards
Andrew
Back to Top
 
EvolveX
Newbie


Joined: 15 December 2009
Posts: 4
Posted: 02 November 2011 at 6:46pm

Excellent, thank you!
Back to Top
 

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

Printable version Printable version