• I’m trying to create a button or a link on my WordPress site for a .exe file. I have the following in the text section of the page:

    <a href="/home2/projecttoday/public_html/SELMS-setup.exe"> Click Here</a>

    When I click on the link, I get “404 Page Not Found”.

    When I display File Manager for the site there is a file called SELMS-setup.exe in /home2/projecttoday/public_html. So what am I doing wrong? How can I debug this?

Viewing 11 replies - 31 through 41 (of 41 total)
  • Thread Starter projecttoday

    (@projecttoday)

    Oh, I guess Coming Soon is for Under Construction. I’m going to reactivate it.

    Thread Starter projecttoday

    (@projecttoday)

    Okay, I get it. I forgot about that plugin for Under Construction.

    Thread Starter projecttoday

    (@projecttoday)

    Is this code correct to get the license file?

    <a href="httр://www.cronapacific.com/public_html/license.txt">Test Doc (.txt)</a>

    Didn’t work.
    Also

    <a href="/public_html/license.txt">License Doc (.txt)</a>

    didn’t work.

    So you’re saying the next move is to contact the web host?

    Moderator bcworkz

    (@bcworkz)

    For WP interface, I meant you could make your own construction page through the usual New Page admin menu item under Pages.

    The link I used to get the license file was <a href="httр://www.cronapacific.com/license.txt">WP License (.txt)</a>

    I was able to get a text file from both <a href="https://www.cronapacific.com/wp-content/uploads/testdoc.txt">Test Doc (.txt)</a> and <a href="https://www.cronapacific.com/testdoc.txt">Test Doc (.txt)</a>, so as I said, either of these would be viable places for storing downloads. You may find downloading .exe files are still restricted, but zipping or tar balling the file should make it downloadable.

    You may need to contact your host if you really want to use /downloads/ as the proper location for downloads if you cannot get it to work yourself. I’m pretty sure it’s just a minor security adjustment on their end.

    Thread Starter projecttoday

    (@projecttoday)

    I have succeeded in getting the .txt file to download. The .exe will not download even though i use the same code (except the file name) and the .exe file is in the same folder as the .txt file. I plan to contact the web host tomorrow. If they can’t fix it I will try to zip it.

    Moderator bcworkz

    (@bcworkz)

    Sounds like a plan. They might be able to but could refuse on security grounds. Doesn’t hurt to ask ?? I’d urge you to zip the file anyway, but it’s your site, not mine. Feel free to disregard.

    Thread Starter projecttoday

    (@projecttoday)

    Correction: the .exe file download was blocked by my anti-virus program (AVG) not the web host.

    Thread Starter projecttoday

    (@projecttoday)

    Why do you advise the .zip file?

    … because you’re not the only one using antivirus programs…

    Thread Starter projecttoday

    (@projecttoday)

    Yes, I though of that. But I came up with the idea of creating 2 downloads to give the user a choice of either the .zip or the .exe. I just wanted to make sure there is no problem with offering a .exe.

    Moderator bcworkz

    (@bcworkz)

    .exe as the only choice would be problematic due to security issues, which do not always apply, so it’s a viable option for some. If there’s an alternative, I see no reason to not offer .exe as well, as long as there is an alternative and your server will actually send out .exe files.

Viewing 11 replies - 31 through 41 (of 41 total)
  • The topic ‘Download button of .exe file’ is closed to new replies.