This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: regular expression help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ishkmi
Newbie
Newbie


Joined: 04 December 2009
Online Status: Offline
Posts: 1
Posted: 04 December 2009 at 8:00am | IP Logged Quote ishkmi

Hi All,

I want to write a rewrite rule which will redirect all requests to /doEvent.asp.

but i dont want to redirect the requests which are starts with admin/ xml/ and the .xmp,.gif .jpg file requests

 

i try the following regEx but its not working

RewriteRule ([^(admin|xml)]).*/(.*)(?!.*\.gif$|.*\.jpg$|.*\.xmp$)

/doEvent.asp

Any Ideas with the regular expression ??

thnaks

Back to Top View ishkmi's Profile Search for other posts by ishkmi
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 04 December 2009 at 8:19am | IP Logged Quote Guests

Well, why won't you try this one:

RewriteBase /
RewriteRule ([^(admin|xml)]).*/(.*)(?!.*\.(gif|jpg|xmp))$

If it won't work, please, provide rewrite log
Back to Top View Guests's Profile Search for other posts by Guests
 

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