This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: quick question (Topic Closed Topic Closed) Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tekml7
Newbie
Newbie


Joined: 26 February 2009
Online Status: Offline
Posts: 2
Posted: 26 February 2009 at 4:03pm | IP Logged  

hey all i have a redirect rule:


RewriteRule (.*)\.html(\??.*) /legacy$1.aspx$2

It takes any html and has it go to the /legacy/ folder with it being a .aspx item instead.

i have some html files in the /old/2 folder that I want to retain without a redirect. how can I alter the above so that it will redirect everything unless it has the /old/2/ path? Or even just anything in /old/

Thanks so much!

 

Back to Top View tekml7's Profile Search for other posts by tekml7
 
tekml7
Newbie
Newbie


Joined: 26 February 2009
Online Status: Offline
Posts: 2
Posted: 04 March 2009 at 2:26pm | IP Logged  

::bump::
Back to Top View tekml7's Profile Search for other posts by tekml7
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8119
Posted: 05 March 2009 at 12:54pm | IP Logged  

RewriteRule (?!/old/2/)(.*)\.html(\??.*) /legacy$1.aspx$2
Back to Top View Lexey's Profile Search for other posts by Lexey
 

Sorry, you can NOT post a reply.
This topic is closed.

  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