This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions (Forum Locked Forum Locked)
 Helicon Tech : Common Questions
Subject Topic: regular expression help
Message |

Joined: 04 December 2009
Posts: 1
Posted: 04 December 2009 at 8:00am

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$)


Any Ideas with the regular expression ??


Back to Top

Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 04 December 2009 at 8:19am

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

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