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: Exclusions from Rewrites Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TheLievense
Newbie
Newbie


Joined: 14 October 2004
Location: United States
Online Status: Offline
Posts: 3
Posted: 17 August 2008 at 9:03pm | IP Logged Quote TheLievense

I have the following rule that is working:

RewriteRule .*/(\w+)(?:\?(.*))? /SourceRedirect.aspx\?src=$1?2&$2:

This takes any URL like www.domain.com/TEST and redirects it to www.domain.com/SourceRedirect.aspx?src=TEST

The problem is that it is causing problems with ATLAS (Microsoft's AJAX) because that implementation creates URLs with the method name appended to the end www.domain.com/Default.aspx/AJAXFunction.

So I tried to make the rule:

RewriteRule .*(?!\.aspx)/(\w+)(?:\?(.*))? /SourceRedirect.aspx\?src=$1?2&$2:

But it's still matching on URLs that it shouldn't (i.e. ones that have .aspx/[[:word::]])

Can someone help me?
Back to Top View TheLievense's Profile Search for other posts by TheLievense Visit TheLievense's Homepage
 
TheLievense
Newbie
Newbie


Joined: 14 October 2004
Location: United States
Online Status: Offline
Posts: 3
Posted: 22 August 2008 at 2:57pm | IP Logged Quote TheLievense

Nevermind, I just ended up using the RewriteCond directive to solve this issue. Thanks.
Back to Top View TheLievense's Profile Search for other posts by TheLievense Visit TheLievense's Homepage
 

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