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: Mod_Rewrite to Isapi_Rewrite (Topic Closed Topic Closed)
Author
Message |
riker1981
Newbie


Joined: 11 November 2006
Posts: 8
Posted: 11 November 2006 at 4:48pm  

Can someone please translate the rules below for me from Mod_rewrite to Isapi_Rewrite? The program is located in a folder called "viral"

I also have other programs that need rules written. I will pay for any one interested.

 

RewriteRule ^/?(admin|install)/(.*)*$ - [Last]
RewriteRule "^/?(page)/([0-9]+)-files\.html$" index.php?page=$2 [Last]
RewriteRule "^/?(category|file|type|search)/([0-9]+)[^/]+\.html$" $1.php?id=$2 [Last]
RewriteRule "^/?(category|file|type|search)/([0-9]+)/([0-9]+)[^/]+\.html$" $1.php?id=$2&page=$3 [Last]
RewriteRule "!^(images|thumbnails|files)" - [C]
RewriteRule "(images|thumbnails|files)(/[^/]+)" $1$2 [Last]
RewriteRule "!^[^/]+\.css$" - [C]
RewriteRule "([^/]+\.css)$" $1 [Last]
Back to Top
 
Lexey
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Posts: 8119
Posted: 13 November 2006 at 9:49am  

Quote:

The program is located in a folder called "viral"


Do you mean that your web application is located in this virtual folder?

If so, here is the translation (except two rules with C):

UriMatchPrefix /viral
UriFormatPrefix /viral

RewriteRule (/(?:admin|install)/.*) $1 [I,L]
RewriteRule /page/(\d+)-files\.html /index.php\?page=$1 [I,L]
RewriteRule /(category|file|type|search)/(\d+)[^/]+\.html /$1.php\?id=$2 [I,L]
RewriteRule /(category|file|type|search)/(\d+)/(\d+)[^/]+\.html /$1.php\?id=$2&page=$3 [I,L]

RewriteRule (/(?:images|thumbnails|files)/[^/]+) $1 [I,L]
RewriteRule (/[^/]+\.css) $1 [I,L]

UriMatchPrefix
UriFormatPrefix


I do not know what "C" flag means for mod_Rewrite, so I can not convert two rules with "C".
Back to Top
 
riker1981
Newbie


Joined: 11 November 2006
Posts: 8
Posted: 16 November 2006 at 8:35am  

Thank you very much Lexey.
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