How to write a link to a zip on a different server??

8 replies
  • WEB DESIGN
  • |
I am having an issue. I need my visitors to be able to download a zip file on a different web site form my current site.

When I build an anchor that looks like this.:

http://hostserver.com/file.zip

this code works fine from my computer, but as soon as I place the html page on my server, when you either hover over it OR click it, the address it tries to connect to is:

http://CURRENTSERVER/hostserver.com/file.zip

For some reason, it is inserting the web address of the site that is hosting the page into the URL even this is not in the code.

What is the fix for this? It is so strange to me that the Server is changing my code on the fly even that address is not in my code at all.

Any Ideas how to allow (connect to) a download of a zip file on a different site from your current site?????

Thanks,

Richard
#link #server #write #zip
  • Profile picture of the author MikeHayes
    Hi Richard,

    I have never had that happen to me. The only thing I can think of is maybe it's expecting the www. before the domain.

    When you have the solution do let us know.

    Good luck,

    Mike
    {{ DiscussionBoard.errors[440724].message }}
    • Profile picture of the author Bruce Hearder
      Yeah.. I would agree with Mike..

      Sounds like the front part of the link is missing..

      What I would suggest doing is actually typing in the address of the zip file into your web browser, then once you get the desired response in the web broser, copy the link from the address bar of the browser and paste it into the link field on your website.. This shoudl fix the problem, otherwise, if you could paste the HTML code of the link that is causing the problem, I'm sure that we can help you ..

      Take care

      Bruce
      {{ DiscussionBoard.errors[440818].message }}
  • Profile picture of the author jnasty
    I would need to agrree with the missing www, as well.

    Let us know how it worked.
    {{ DiscussionBoard.errors[441258].message }}
  • Profile picture of the author Richard Whyte
    HI

    No, this did not help.

    I have pulled everything from the code. It is simple.

    An anchor that points to a zip file on a different website I own.

    http:/www.otherservername.com/directory/file.zip

    When I move the mouse over the link the status bar says ((or click it) it sends me to:

    "http://currentservername.com/www.otherservername.com/directory/file.zip"

    Anything I do, places the name of the current website into the code. If I open the page in "View Source", it still has the anchor without the extra name, but it is changes when you hover over the link of click it.

    I have been building web pages for over 15 years and I have never seen this. But I have also never pointed to a ZIP file on a different server before.

    The only reason I am doing this is because the offers I have on my site when totaled are over 450 MB and the hosting package I have can not handle the amount of traffic.
    {{ DiscussionBoard.errors[441286].message }}
  • Profile picture of the author Richard Whyte
    OK, here is the sample link for you.

    SamplePage

    Instructions are on the page. Have a look and see what you think.

    In 15 plus years of web development, I have never had this problem before. I have looked at all the settings I can see inside of cpanel and nothing looks out of place to me.

    the link is "http://work-at-home-toolbox.com/test.htm" if you want to see it and not use the link above!
    {{ DiscussionBoard.errors[448785].message }}
  • Profile picture of the author John Rowe
    Richard, your source code reveals this...

    http:/
    rather than
    http://
    {{ DiscussionBoard.errors[448816].message }}
  • Profile picture of the author Richard Whyte
    Ha..... Can't believe it..... Been looking at that code for hours... Ripped it out of a huge page I have.

    Such a silly thing.... See what happens when you have been up for way to many hours in front of this box...

    Thanks for the review and pointing out the oh so NOT obvious...LOL
    {{ DiscussionBoard.errors[448897].message }}
  • Profile picture of the author Richard Whyte
    For all of you that have been following this.... The problem is solved thanks to John Rowe. Was just a simple typo on my part but for some reason, after looking at the code for hours, my brain was seeing what it expected to see, not what it was really seeing.

    Just a simple "/" was missing and I lost half my hair.... LOL

    I'm out of here!

    Time to code....
    {{ DiscussionBoard.errors[448914].message }}

Trending Topics