This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze (Forum Locked Forum Locked)
 Helicon Tech : LinkFreeze
Subject Topic: Disable Linkfreeze for all images (Topic Closed Topic Closed)
Author
Message |
moishier
Groupie


Joined: 24 October 2004
Location: United States
Posts: 76
Posted: 24 November 2006 at 1:00pm  

I want to disable linkfreeze for all images. Based on a KB article, you write:

@[^?]+\.asp - this will match every .asp file on the site.

So I want to disable .gif and .jpg.

Where do I put in that code?
Back to Top Visit moishier's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 27 November 2006 at 4:11am  

Can you first explain why you are trying to do this? LinkFreeze does not apply to images anyway because LinkFreeze apply only to the text/html or text/xhtml responses.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
moishier
Groupie


Joined: 24 October 2004
Location: United States
Posts: 76
Posted: 27 November 2006 at 9:19am  

Well, I want to replace the ?, & and = with _ (underscore). The issue is that I have lots of images that contain the underscore. How can I prevent the page from processing those images? Should I be preventing it, or should I change to not use underscores?
Back to Top Visit moishier's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 28 November 2006 at 4:20am  

Now I understand your question. There are few possible solutions. Here is a first example of rule that will optimize entire site but exclude image folder:

@/(?!images).*

Here is an example that will exclude .jpg and .gif files:

@(?!.*\.(?:jpg|gif)$).*

And also please note that underscore may occasionly been used in the page names or parameters values thus causing incompatibility issues. Please be careful if you decide to use this substitution character.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
moishier
Groupie


Joined: 24 October 2004
Location: United States
Posts: 76
Posted: 28 November 2006 at 9:32am  

When I try to put that in the LinkFreeze11.ini file, it it does not work.

Below is what by .ini file looks like:

#################################################
# LinkFreeze Configuration file
# Version 2, 1, 0, 61


LogRewrite=False
NotifyOrder=MEDIUM


/           ;___     .asp   &nbs p;       [MoveExt,AbsLinks,Redirect,Lowercase]
@(?!.*\.(?:jpg|gif)$).*

(Is there anyway to get support faster on this? It seems that there is a day between replies, and I can't get anything done like this...)
Back to Top Visit moishier's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 28 November 2006 at 9:40am  

Unfortunately we live in a different timezones so response time may be slower than you expecting.

Here is a configuration file example:

#################################################
# LinkFreeze Configuration file
# Version 2, 1, 0, 61


LogRewrite=False
NotifyOrder=MEDIUM


@(?!.*\.(?:jpg|gif)$).* ___ .asp [MoveExt,AbsLinks,Redirect,Lowercase]
Back to Top Visit Yaroslav's Homepage
 
moishier
Groupie


Joined: 24 October 2004
Location: United States
Posts: 76
Posted: 28 November 2006 at 9:46am  

Thank you, that worked!

I appreciate your quick response.
Back to Top Visit moishier's Homepage
 
moishier
Groupie


Joined: 24 October 2004
Location: United States
Posts: 76
Posted: 28 November 2006 at 12:09pm  

Related:

I have many files that are named with an underscore, like file_123.asp.

I will rename these files to file-123.asp. BUT: there are many links to these pages as file_123.asp.

What is the solution? Can I have a rule come before the general Linkfreeze processing to convert these particular file names to the - euquivalent, file-123.asp?

Any ideas here what would be the best path? I have ISAPI_rewrite is if makes a difference.
Back to Top Visit moishier's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 29 November 2006 at 10:00am  

I guess the best choice is to use find/replace in some text processor tool or even better choose a different substitution character in LinkFreeze that will be more compatible with your web site structure.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
moishier
Groupie


Joined: 24 October 2004
Location: United States
Posts: 76
Posted: 29 November 2006 at 10:09am  

Why won't my idea work? Why can't I have a rule in ISPI_rewrite to do the pre-processsing? Doesn't that process before Linkfreeze?

Can linkfreeze be set with multiple levels, or pre-processing to convert specific URL's to something else?
Back to Top Visit moishier's Homepage
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 30 November 2006 at 6:09am  

ISAPI_Rewrite works only on incoming requests, you cannot change links with ISAPI_Rewrite. In your situation the best solution would be choosing different substitution character.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 

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