This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: LinkFreezeRule certain files Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mstillo
Newbie
Newbie


Joined: 18 March 2011
Online Status: Offline
Posts: 6
Posted: 18 March 2011 at 2:42pm | IP Logged Quote mstillo

I am looking into how to only rewrite certain asp files.

Here is my config


SetEnv mod_linkfreeze
RewriteRule
LinkFreezeRule ~~~ "asp=htm" [ AbsLinks,MoveExt ]

The certain asp file I am looking to rewrite the link
looks like detail.asp?id=1234

Currently every asp page is being rewritten.
Back to Top View mstillo's Profile Search for other posts by mstillo
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 18 March 2011 at 4:53pm | IP Logged Quote Vyacheslav

Hello.
Please clarify your question. If you want to limit mod_linkfreeze for certain requests only, you may use mod_setenvif’s conditions:
Code:
SetEnvIf request_uri !^/admin.*$ mod_linkfreeze
LinkFreezeRule ~~~ "asp=htm" [ AbsLinks,MoveExt ]

In this case mod_linkfreeze won’t be applied to /admin path.

If you want not to freeze certain links within single page, you may use optional filter in LinkFreezeRule directive:
Code:
SetEnv mod_linkfreeze
LinkFreezeRule --- "aspx=htm" "^(?!/page1\.asp).+$"


If you only need to freeze response of one particular file, the config might look as follows:
Code:
SetEnvIfNoCase request_uri ^/detail\.asp$ and query_string ^id=1234$ mod_linkfreeze
LinkFreezeRule ~~~ "asp=htm" [AbsLinks, MoveExt]


__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav'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 can vote in polls in this forum