This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Remap with Isapi 2 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
LTM
Newbie
Newbie


Joined: 17 June 2011
Online Status: Offline
Posts: 2
Posted: 17 June 2011 at 5:15am | IP Logged Quote LTM

Hello,

i need to rewrite like following:

www.domain.com/service
www.domain.com/service/

www.domain.com/index.php?node_id=12

this should be in a mapfile

like:

service  12

 

i tried this but dont work

RewriteEngine on
RewriteBase /
RewriteMap mapfile txt:mapfile.txt
RewriteRule ^([^?/]+)\ /index.php?node_id=${mapfile:$1}

 

thx for help

Back to Top View LTM's Profile Search for other posts by LTM
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 19 June 2011 at 4:20pm | IP Logged Quote Lexey

ISAPI_Rewrite 2 does not support map files.
This could be done with the following rules:

#specify static prefixes to simplify mapping
UriMatchPrefix /
UriFormatPrefix /index.php?node_id=

#mapping is going there
MapUri [I,L]
{
service 12
service/ 12
}

#reset prefixes to defaults
UriMatchPrefix
UriFormatPrefix
Back to Top View Lexey's Profile Search for other posts by Lexey
 
LTM
Newbie
Newbie


Joined: 17 June 2011
Online Status: Offline
Posts: 2
Posted: 20 June 2011 at 9:53am | IP Logged Quote LTM

Hello,

thx for the Info, but this also not works for me,

ISAPI_Rewrite version 2.7 build 52:

 

i get the following errors

Line 23: Unrecognized string: UriMatchPrefix /
Line 24: Unrecognized string: UriFormatPrefix /index.php?node_id=
Line 27: Unrecognized string: MapUri [I,L]
Line 28: Unrecognized string: {
Line 29: Unrecognized string: service 12
Line 30: Unrecognized string: service/ 12
Line 31: Unrecognized string: }
Line 34: Unrecognized string: UriMatchPrefix
Line 35: Unrecognized string: UriFormatPrefix

Back to Top View LTM's Profile Search for other posts by LTM
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 21 June 2011 at 4:31am | IP Logged Quote Lexey

You need to install the latest ISAPI_Rewrite 2 build to use this functionality.
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum