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: Exclude Directory Problem
Author
Message |
JonnyX
Newbie


Joined: 22 August 2007
Posts: 26
Posted: 11 April 2011 at 4:54pm

Hi,

I have an old version of linkfreeze and would like to exclude a directory /admin/ from linkfreeze can you please provide the rule in my config file below

#################################################
# LinkFreeze Configuration file
# Version 2, 2, 0, 75


LogRewrite=False
NotifyOrder=MEDIUM


/        ~~~    .asp        [MoveExt,AbsLinks]

P.S. I did try following some examples from the site, with no sucess
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 April 2011 at 2:42am

This must work:

@/(?!admin).*     ~~~    .asp        [MoveExt,AbsLinks]

__________________
Regards,
Anton
Back to Top
 
JonnyX
Newbie


Joined: 22 August 2007
Posts: 26
Posted: 12 April 2011 at 4:10am

That worked a treat what about if i wanted to exclude multiple directories or even files.

ecommerce/admin
ecommerce/scripts

prodlist.asp
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 April 2011 at 4:37am

Just enlist them like this:

@/(?!admin|scripts|file\.asp).*     ~~~    .asp        [MoveExt,AbsLinks]

__________________
Regards,
Anton
Back to Top
 
JonnyX
Newbie


Joined: 22 August 2007
Posts: 26
Posted: 12 April 2011 at 5:12am

would it not be

@/(?!ecommerce/admin|ecommerce/scripts|prodlist\.asp).*     ~~~    .asp        [MoveExt,AbsLinks]
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 April 2011 at 5:33am

Right you are. I didn't notice they are subfolders.

__________________
Regards,
Anton
Back to Top
 
JonnyX
Newbie


Joined: 22 August 2007
Posts: 26
Posted: 13 April 2011 at 3:28am

Thank you for your help, excellent customer service.

That also worked a treat, is it possible to convert:

http://www.perfectlyengraved.co.uk/ecommerce/Scripts/prodList2.asp?idCategory=406~Engraved~Christmas~Collection

to

http://www.perfectlyengraved.co.uk/Engraved-Christmas-Collection-c-406

Best Regards

John Wright
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 14 April 2011 at 2:10am

"is it possible to convert:
http://www.perfectlyengraved.co.uk/ecommerce/Scripts/prodList2.asp?idCategory=406~Engraved~Christmas~Collection
to
http://www.perfectlyengraved.co.uk/Engraved-Christmas-Collection-c-406"
- well, it is possible but not with LinkFreeze. ISAPI_Rewrite3 or Helicon Ape are capable of doing such transformations.

__________________
Regards,
Anton
Back to Top
 
JonnyX
Newbie


Joined: 22 August 2007
Posts: 26
Posted: 14 April 2011 at 12:05pm

Can link freeze be installed as well as ISAPI_Rewrite3 or Helicon Ape on windows 2003 web server

If i bought it could you write the rules for me and guide me to get it to work
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 15 April 2011 at 2:39am

If you are on 2003 server, you'd better install ISAPI_Rewrite 3.
And, yes, you can have both ISAPI_Rewrite3 and LinkFreeze working together without any problems.
BTW, it's not necessary to buy the license for ISAPI_Rewrite right away, there's 45-day trial period.
After you install ISAPI_Rewrite, put the following lines into the .htaccess in the root of your site:

RewriteBase /
RewriteCond %{QUERY_STRING} ^idCategory=(\d+)~(.+)$
RewriteRule ^ecommerce/Scripts/prodList2\.asp$ %2-c-%1? [NC,R=301,L]

RewriteRule ^(.+)-c-(\d+)$ ecommerce/Scripts/prodList2.asp\?idCategory=$2~$1 [NC,L]

Then test the request you wanted to convert. And report the results.

__________________
Regards,
Anton
Back to Top
 

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