| Author |
|
JonnyX Newbie

Joined: 22 August 2007
Online Status: Offline Posts: 26
|
| Posted: 11 April 2011 at 4:54pm | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 12 April 2011 at 2:42am | IP Logged
|
|
|
This must work:
@/(?!admin).* ~~~ .asp [MoveExt,AbsLinks]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
JonnyX Newbie

Joined: 22 August 2007
Online Status: Offline Posts: 26
|
| Posted: 12 April 2011 at 4:10am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 12 April 2011 at 4:37am | IP Logged
|
|
|
Just enlist them like this:
@/(?!admin|scripts|file\.asp).* ~~~ .asp [MoveExt,AbsLinks]
__________________ Regards,
Anton
|
| Back to Top |
|
| |
JonnyX Newbie

Joined: 22 August 2007
Online Status: Offline Posts: 26
|
| Posted: 12 April 2011 at 5:12am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 12 April 2011 at 5:33am | IP Logged
|
|
|
Right you are. I didn't notice they are subfolders.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
JonnyX Newbie

Joined: 22 August 2007
Online Status: Offline Posts: 26
|
| Posted: 13 April 2011 at 3:28am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 14 April 2011 at 2:10am | IP Logged
|
|
|
"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
Online Status: Offline Posts: 26
|
| Posted: 14 April 2011 at 12:05pm | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 15 April 2011 at 2:39am | IP Logged
|
|
|
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 |
|
| |