This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: LinkFreezeRule certain files
Author
Message |
mstillo
Newbie


Joined: 18 March 2011
Posts: 6
Posted: 18 March 2011 at 2:42pm

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
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 18 March 2011 at 4:53pm

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 Visit Vyacheslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version