This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
LinkFreeze
 Helicon Tech : LinkFreeze
Subject Topic: Exclude Files with 2 x asp extensions Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 13 December 2010 at 10:09pm | IP Logged Quote japanese

Hi,

I am having trouble excluding some files.

I want to rewrite all asp files to htm except those like /filter.asp?abc such as these below

http://www.muranavi.com/machida/eatsndrinks/filter.asp?url=viewad.asp?id=1000102&act=17&id=1000102

I am having trouble with the syntax for this.  Not sure if it is because of having 2 x .asp in the url, but I need help!

 

Back to Top View japanese's Profile Search for other posts by japanese
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 14 December 2010 at 2:17am | IP Logged Quote Anton

Could you please provide the rule(s) you are using to rewrite the rest of the .asp pages to .htm and I'll fix it according to your needs.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 14 December 2010 at 3:11am | IP Logged Quote japanese

Thanks Anton,

The whole site is dynamic, so I had simply set it to rewrite from the root folder. 

So, directory pattern /, replace '? & =' with '-', move file extension to the end of file checked, replace asp with htm

I also notice though that links back to the home page, default.asp, do not get re-wrtitten.

Tony.

Back to Top View japanese's Profile Search for other posts by japanese
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 14 December 2010 at 4:18am | IP Logged Quote Anton

Ok, to exclude filter.asp you can use the following:

@/(?!.*filter\.asp).* --- .asp [MoveExt]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 14 December 2010 at 5:19am | IP Logged Quote japanese

Hi Anton,

I copied and pasted that into Directory Pattern and clicked apply, but I get the error message "You must enter valid directory pattern".

What to do?

Tony.

Back to Top View japanese's Profile Search for other posts by japanese
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 14 December 2010 at 5:56am | IP Logged Quote Anton

You mean to say, this

@/(?!.*filter\.asp).*

is incorrect Directory pattern?
Also try it like this:

@/(?!filter\.asp).*

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 14 December 2010 at 6:20am | IP Logged Quote japanese

I guess I misunderstood Anton as I though I had to include [MoveExt] in the Directory Pattern

I have tried your last 2 suggestions.  Same original problem though as it rewrites to:

http://www.muranavi.com/machida/eatsndrinks/filter-url-viewad.asp?id=1000102-act-17-id-1000102.htm

Any idea?

Many thanks,

Tony.

Back to Top View japanese's Profile Search for other posts by japanese
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 14 December 2010 at 7:02am | IP Logged Quote Anton

Please make sure you are using the latest build of LinkFreeze available, and if not, please update.
It should work with the initial pattern I provided you.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 14 December 2010 at 7:24am | IP Logged Quote japanese

About says version 2.0.0.81 which i think is most recent?

It was installed over an older version though.  Maybe it needs a clean install?  Is there a particular way to do that?

Tony.

Back to Top View japanese's Profile Search for other posts by japanese
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 14 December 2010 at 7:38am | IP Logged Quote japanese

One other thing.  This is the asp coding behind the link.  Would this have an influence?

<a href="filter.asp?url=viewad.asp?id=<%= adID %>&amp;act=17&amp;id=<%= adID %>">

Many thanks,

Tony.

Back to Top View japanese's Profile Search for other posts by japanese
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 15 December 2010 at 5:10am | IP Logged Quote Anton

ASP doesn't actually matter, the resulting html is important.
Please make sure if it's also the latest build in IIS settings for the site.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 15 December 2010 at 7:12am | IP Logged Quote japanese

In IIS under the LinkFreeze Tab I click About and it says version 2.0.0.81

Tony.

 

Back to Top View japanese's Profile Search for other posts by japanese
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 15 December 2010 at 7:51am | IP Logged Quote Anton

Could you please specify the windows version you use.
And provide us the URL of the page which contains the link you need to exclude from freezing.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
japanese
Newbie
Newbie


Joined: 13 December 2010
Online Status: Offline
Posts: 11
Posted: 15 December 2010 at 9:16pm | IP Logged Quote japanese

Hi Anton,

It is Windows Server 2003 Standard Edition Service Pack 2.

Im afraid though the page is behind a login, and I have also made an alteration to move things along, using HTTP headers to exclude the files containing the add to favorites links.

I think this solution will be good enough as pages linked to from those pages are linked to on higher levels of the website.  The favorites link is of no use for SEO and other additional links are just email a friend and print versions.

So, it would be good to solve now for academic purposes but otherwise I am happy to stick with the work-around.

Many thaks,

Tony.

Back to Top View japanese's Profile Search for other posts by japanese
 

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