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: eclude files and folders (Topic Closed Topic Closed)
Author
Message |
notcon2
Newbie


Joined: 26 June 2007
Posts: 3
Posted: 26 June 2007 at 8:14am  

Can someone PLEASE explain to me how to exclude both a number of files AND a number of folders.

I have sucessfully used the regex to exclude specific folders but cannot seem to get the same working for a number of files.

Thanks

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 27 June 2007 at 6:40am  

Can you please provide some examples on folders and files you need to exclude?
In general the rule would look like:

@(?!/folder1|/folder2|/file1.asp|/folder/file2.asp).*

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


Joined: 26 June 2007
Posts: 3
Posted: 29 June 2007 at 6:49am  

thanks

so to include the entire site but exclude a specific number of folders and files I would do what exactly?
Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 30 June 2007 at 5:45am  

Tell me first how many folders and files you are going to exclude?

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


Joined: 26 June 2007
Posts: 3
Posted: 04 July 2007 at 10:14am  

Hi,

OK.

I want to apply linkfreeze to the whole site.

I want to exclude a number of folders folder1, folder2, folder3, folder4, folder5.

I want to include a number of files from folder1 and folder 2.

Please can you explain how to do this.

Thanks

Nathan
Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 06 July 2007 at 6:40am  

Please note number of folders and files you can filter with this syntax is very limited. Use the following set of patterns in your configuration file:

Code:
#Include files form folder1
@/folder1/(?:file1.htm|file2.htm).*           ---          [MoveExt,Redirect]

#include files from folder2
@/folder1/(?:file1.htm|file2.htm).*          ---          [MoveExt,Redirect]

#include entire site except folder1,2, etc.
@(?!/folder1|/folder2|/file1.asp|/folder/file2.asp).*          ---          [MoveExt,Redirect]


__________________
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