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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: quick question (Topic Closed Topic Closed)
Author
Message |
tekml7
Newbie


Joined: 26 February 2009
Posts: 2
Posted: 26 February 2009 at 4:03pm  

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
 
tekml7
Newbie


Joined: 26 February 2009
Posts: 2
Posted: 04 March 2009 at 2:26pm  

::bump::
Back to Top
 
Lexey
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Posts: 8119
Posted: 05 March 2009 at 12:54pm  

RewriteRule (?!/old/2/)(.*)\.html(\??.*) /legacy$1.aspx$2
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