| Author |
|
japanese Newbie

Joined: 13 December 2010
Online Status: Offline Posts: 11
|
| Posted: 13 December 2010 at 10:09pm | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 14 December 2010 at 2:17am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 14 December 2010 at 3:11am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 14 December 2010 at 4:18am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 14 December 2010 at 5:19am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 14 December 2010 at 5:56am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 14 December 2010 at 6:20am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 14 December 2010 at 7:02am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 14 December 2010 at 7:24am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 14 December 2010 at 7:38am | IP Logged
|
|
|
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 %>&act=17&id=<%= adID %>">
Many thanks,
Tony.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 15 December 2010 at 5:10am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 15 December 2010 at 7:12am | IP Logged
|
|
|
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
Online Status: Offline Posts: 10520
|
| Posted: 15 December 2010 at 7:51am | IP Logged
|
|
|
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
Online Status: Offline Posts: 11
|
| Posted: 15 December 2010 at 9:16pm | IP Logged
|
|
|
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 |
|
| |