Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: rules .htaccess for isapi rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
docteobar
Newbie
Newbie


Joined: 04 July 2008
Online Status: Offline
Posts: 1
Posted: 04 July 2008 at 1:06pm | IP Logged Quote docteobar

i want transform this .htaccess


Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

RewriteRule ^(.*)$ index.php [F,L]


for using joomla with isapi rewrite

After a lot of tests and hours... i'v not a good redirection

please help me...

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


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7460
Posted: 08 July 2008 at 3:38pm | IP Logged Quote Lexey

Only part of these rules could be converted to the ISAPI_Rewrite 2 syntax:

RewriteRule (?!/index\.php)(?:[^?]*\.(?:php|html?|feed|pdf|raw)|[^.?]*)(?:\?.*)? /index.php [I,L]

RewriteRule [^?]*\?.*(?:mosConfig_[a-zA-Z_]{1,21}(?:=|%3D)|base64_encode.*\(.*\)|(?:<|%3C).*script.*(?:>|%3E)|GLOBALS(?:=|\[|%[0-9A-Z]{0,2})|_REQUEST(?:=|\[|%[0-9A-Z]{0,2})).* /index.php [I,L]
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