Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Non working rewrite rules Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
a_smith
Newbie
Newbie


Joined: 12 September 2008
Online Status: Offline
Posts: 1
Posted: 19 September 2008 at 10:13am | IP Logged Quote a_smith

Hi
I have migrated from Linux/Plesk to Windows/Plesk hosting.
I have ISAPI Rewrite Pro installed and this is working like a charm.

But one of my websites has .htaccess file with rules which can not be accepted by ISAPI.

.htaccess file looks like this:

 RedirectMatch (.*)/backup/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/appdata/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/bot/programe/aiml/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/images/cust_img/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/inc/patServer/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/templates/cache/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/templates/templates_c/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/flash_chat/uploaddir/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/languages/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/templates_c/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/uploades/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/admin/newsletter/files/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/admin/newsletter/pictures/(.*).php$ "ErrorDocument 404 /index.html"
 RedirectMatch (.*)/include/(.*).xml$ "ErrorDocument 404 /index.html"


Can someone please help me and 'translate' this rules to make them work with ISAPI Rewrite 3.0?
Unfortunately I am not too familiarise with rewite rules.
Thanks.
Back to Top View a_smith's Profile Search for other posts by a_smith
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4842
Posted: 23 September 2008 at 1:27am | IP Logged Quote Anton

Please try to use this rule instead:

RewriteRule .*/(?:backup|flash_chat/(?:appdata|bot/programe/aiml|images/cust_img|inc/patServer|templates/cache|templates/templates_c|
uploaddir)|languages|templates_c|uploades|admin/newsletter/(?:files|pictures)| include)/(.*)\.php$ /index.html [NC,R=301,L]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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 can vote in polls in this forum