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: Query about mapfiles
Author
Message |
k00k
Newbie


Joined: 24 September 2011
Posts: 2
Posted: 20 January 2012 at 8:19pm

I am trying to generate the following URLs:

http://mysite.net/somewhere/butcher
http://mysite.net/elsewhere/baker
http://mysite.net/everywhere/candlestick-maker

Original URLs:

http://mysite.net/default.asp?id=96
http://mysite.net/default.asp?id=97
http://mysite.net/default.asp?id=98

.htaccess:

Code:
RewriteEngine on

RewriteMap mapfile txt:mapfile.txt [NC]
RewriteRule ^([^?/]+)\ default.asp?id=${mapfile:$1}

mapfile.txt:

Code:
somewhere/butcher    96
elsewhere/baker    97
everywhere/candlestick-maker    98


What am I doing wrong?

Any advice would really be appreciated as it's driving me crazy.
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 23 January 2012 at 6:18am

Hello,

That could be anything.
Lets start with the most popular thing:

1) Try using the following line right after the RewriteEngine on
Code:
RewriteBase /


2) RewriteRule ^([^/]+)$ /default.asp?id=${mapfile:$1} [NC,L]

3) Enable logging and see error.log and rewrite.log.

4) provide the rewrite.log for the testing request.

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