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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Remap with Isapi 2
Author
Message |
LTM
Newbie


Joined: 17 June 2011
Posts: 2
Posted: 17 June 2011 at 5:15am

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
 
Lexey
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Posts: 8119
Posted: 19 June 2011 at 4:20pm

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
 
LTM
Newbie


Joined: 17 June 2011
Posts: 2
Posted: 20 June 2011 at 9:53am

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
 
Lexey
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Posts: 8119
Posted: 21 June 2011 at 4:31am

You need to install the latest ISAPI_Rewrite 2 build to use this functionality.
Back to Top
 

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

Printable version Printable version
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