How to create link for .zip file

Discussion in 'Site & Server Administration' started by drhfinegifts, Mar 23, 2010.

  1. #1
    I can't seem to get this to work. How do I create a link so someone can click a link in an email to access and download a .zip file from my server?

    Shouldn't it be as simple as http://mysite.com/file.zip? When I try that, it is returning a 404 not found error.

    Do I need to change permissions or something? I have uploaded the zip file to the root directory.

    Could this be an issue with the hosting company?
     
    drhfinegifts, Mar 23, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Depending on how the site/server is setup, the file should be under a public_html or www folder, not the root of your website.
     
    RHS-Chris, Mar 23, 2010 IP
  3. drhfinegifts

    drhfinegifts Peon

    Messages:
    368
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried that in the beginning, and got the error before. Then I moved the file to the root directory (as another forum said to do). Tried it, and got the 404 error. I went back and added a subfolder "downloads" to the public_html folder and put the zip files in there. Now it works!

    Thanks!
     
    drhfinegifts, Mar 23, 2010 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Glad to hear that its working now. Perhaps there is an .htaccess file within the public_html folder that is trying to rewrite the url, which then flags the 404 error...?
     
    RHS-Chris, Mar 24, 2010 IP