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: General questions (Topic Closed Topic Closed)
Author
Message |
texsoft
Newbie


Joined: 28 February 2007
Posts: 7
Posted: 28 February 2007 at 6:17pm  

I'm trialing the software now, but I'm confused about a couple of things.  I'm using the RegExp of @[^?]+\.asp for my directory.

1. The list of recommended substitution characters does not include  a hyphen ("-").  Are there potential problems with this?

2. I use some JavaScript popups that look like this:

<a href="#null" onClick="newWindow('imagepop.asp?img=123.jpg')">

The link works, but when the image displays in the window, it displays an image name of 123.jpg.asp, which is a little odd.  How do I correct this?

3. I use some JavaScript links that look like this:

<script type="text/javascript">
     <!--
      document.write('<a href="login.asp?ReturnTo=https://www.domain.com/process1.asp?idProduct=101">');
     //-->
     </script> 

As you can tell, the login script redirects to the passed absolute URL following login.  These don't work well with LinkFreeze active.  How should I handle these?

4. If I need all absolute links rewritten except for links to external payment systems like PayPal, how do I handle that?  Ideally, I would like all absolute links that start with my domain to be rewritten, but no links to other domains.

5. Finally, I would like to replace the asp extension with htm, but I can't get that to work.  I have entered asp in the file extension box, and checked and unchecked the option to move the file extension to the end of the URL, but all I get when I do this is page not found.  Any ideas what I might be doing wrong here?

Thanks!

 

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 02 March 2007 at 4:49am  

1. Hyphen is included there on a second place and there is no problems with hyphens, especially with the latest versions of LinkFreeze.
2. Guess the problem is in the imagepop.asp code that calculates invalid path.
3. Please describe problem in more details (or better show it online). Also I need to see your exact LinkFreeze configuration file.
4. You can turn "Transform absolute links" option on, it will do exactly what you ask. But note if you are using domain aliases the links will not be rewritten (while it is still be possible to redirect old style URLs).
5. I suggest you to replace @[^?]+\.asp pattern with a simple '/' pattern, it will help here.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
texsoft
Newbie


Joined: 28 February 2007
Posts: 7
Posted: 02 March 2007 at 5:13am  

Thanks for your help.  Using "/" instead of the regex pattern did help.

Here's my site:

http://www.vantiquities.com/janusantiquities

Click on one of the images, then try the "Add to wish list" option.  It should take you to the login screen.

Here's my config:

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


LogRewrite=False
NotifyOrder=MEDIUM


/  --- .asp  [MoveExt,AbsLinks,Redirect,Lowercase]

Back to Top
 
texsoft
Newbie


Joined: 28 February 2007
Posts: 7
Posted: 02 March 2007 at 5:27am  

Regarding my question #2, where you suggested that the code calculates an invalid path -- I'm not sure how the image could be displayed if the path was invalid.  Have a look here:

http://www.vantiquities.com/janusantiquities/store/viewitem-idproduct-154-large-0.htm

Click on one of the smaller images below the item description.  In IE7, a path is displayed in the popup window, and that path has ".htm" following the ".jpg" of the image name.  This seems like a bug to me -- the option is to replace "asp" with "htm", but there is no "asp" in the URL to the image.

In imagepop.asp, the following happens:

<%
strImage = request.querystring("img")
%>
<img src="catalog/<%=strImage%>" border="0">

I don't see anything wrong with this, do you?

 

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 03 March 2007 at 6:16am  

1. The link "Add to wish list" corrupted on server side. Please check your ASP code.
2. The link to the page with image is:
http://www.vantiquities.com/janusantiquities/store/imagepop-img-2006SA10c.jpg.htm
which I guess initially was as http://www.vantiquities.com/janusantiquities/store/imagepop-img-2006SA10c.jpg.asp and LinkFreeze correctly translated .asp extension.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
texsoft
Newbie


Joined: 28 February 2007
Posts: 7
Posted: 03 March 2007 at 7:00am  

1. The link is not "corrupted" on the server.  This ASP has been in place just fine for five years.  I have disabled LinkFreeze on the site now so you can see the link as it was before LinkFreeze garbled it.  (Please, just try a link like this on your test server.)  Here's the original link:

https://www.vantiquities.com/janusantiquities/store/login.asp?ReturnTo=https://www.vantiquities.com/janusantiquities/store/customerwishlistadd.asp?idProduct=161

LinkFreeze can't handle the URL passed to the login.asp script.  That's a problem in LinkFreeze, not the ASP code.

2. No, that was not the initial link, which is why I posted it on the forum.  If you read my first post in this thread, you'll see that the link originally was:

http://www.vantiquities.com/janusantiquities/store/imagepop.asp?img=2006SA10c.jpg

and LinkFreeze incorrectly added the asp (or htm, depending on the LF config) to the end of the image name.  This is most definitely a bug in your code. 

 

 

 

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 03 March 2007 at 12:25pm  

1. The original link was actually
href="login.asp?ReturnTo=https://www.vantiquities.com/janusantiquities/store/customerwishlistadd.asp?idProduct=183" LinikFreeze does not perform well with a links containing absolute links inside. I suggest you to change this link to the absolute form entirely so LinkFreeze will not touch it at all:

href="lhttp://www.vantiquities.com/janusantiquities/store/login.asp?ReturnTo=https://www.vantiquities.com/janusantiquities/store/customerwishlistadd.asp?idProduct=183"
Or better use QueryStringEncode function to encode special characters in URL parameters (like :, ?, etc).

2. Yes, initial link was http://www.vantiquities.com/janusantiquities/store/imagepop.asp?img=2006SA10c.jpg and linkFreeze was correctly transformed it to the http://www.vantiquities.com/janusantiquities/store/imagepop-img-2006SA10c.jpg.htm according to your configuration. As you can see substitution characters replaced and file extension moved to the end of URL. This is not a bug but expected behaviour.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
texsoft
Newbie


Joined: 28 February 2007
Posts: 7
Posted: 03 March 2007 at 9:40pm  

Yaroslav wrote:
1. I suggest you to change this link to the absolute form entirely so LinkFreeze will not touch it at all

I'm confused.  I need absolute links within my domain to be transformed, but not external links.  Since this link is within my domain, won't it get transformed?

Yaroslav wrote:
2. This is not a bug but expected behaviour.

I certainly didn't expect it.  I would think a better solution is to look at the end of the link before transformation, and if it contains an image extension, don't add the htm extension.

 

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 05 March 2007 at 5:21am  

1. Then encode URL parameters using QueryStringEncode function according to the HTTP specification. The initial link login.asp?ReturnTo=https://www.vantiquities.com/janusantiquities/store/customerwishlistadd.asp?idProduct=183 is invalid according to the specification because it contains disallowed characters in the parameter value.
2. Why? Do you thing there is some difference for search engines what characters are contained in a file name (what you call an image extension is not actually image extension, it only looks like). Link /janusantiquities/store/imagepop.asp?img=2006SA10c.jpg is the link to the 'imagepop.asp' and not to the '2006SA10c.jpg' thus LinkFreeze transformed the link correctly.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 

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