Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze support forum
 Helicon Tech : LinkFreeze support forum
Subject Topic: eclude files and folders Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
notcon2
Newbie
Newbie


Joined: 26 June 2007
Online Status: Offline
Posts: 3
Posted: 26 June 2007 at 8:14am | IP Logged Quote notcon2

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 View notcon2's Profile Search for other posts by notcon2
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6445
Posted: 27 June 2007 at 6:40am | IP Logged Quote Yaroslav

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 View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
notcon2
Newbie
Newbie


Joined: 26 June 2007
Online Status: Offline
Posts: 3
Posted: 29 June 2007 at 6:49am | IP Logged Quote notcon2

thanks

so to include the entire site but exclude a specific number of folders and files I would do what exactly?
Back to Top View notcon2's Profile Search for other posts by notcon2
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6445
Posted: 30 June 2007 at 5:45am | IP Logged Quote Yaroslav

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

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
notcon2
Newbie
Newbie


Joined: 26 June 2007
Online Status: Offline
Posts: 3
Posted: 04 July 2007 at 10:14am | IP Logged Quote notcon2

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 View notcon2's Profile Search for other posts by notcon2
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6445
Posted: 06 July 2007 at 6:40am | IP Logged Quote Yaroslav

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 View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav'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 cannot vote in polls in this forum