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 Files with 2 x asp extensions
Author
Message |
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 13 December 2010 at 10:09pm

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 14 December 2010 at 2:17am

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
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 14 December 2010 at 3:11am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 14 December 2010 at 4:18am

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

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

__________________
Regards,
Anton
Back to Top
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 14 December 2010 at 5:19am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 14 December 2010 at 5:56am

You mean to say, this

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

is incorrect Directory pattern?
Also try it like this:

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

__________________
Regards,
Anton
Back to Top
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 14 December 2010 at 6:20am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 14 December 2010 at 7:02am

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
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 14 December 2010 at 7:24am

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
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 14 December 2010 at 7:38am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 15 December 2010 at 5:10am

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
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 15 December 2010 at 7:12am

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

Tony.

 

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 15 December 2010 at 7:51am

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
 
japanese
Newbie


Joined: 13 December 2010
Posts: 11
Posted: 15 December 2010 at 9:16pm

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
 

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