WordPress.org

Ready to get started?Download WordPress

Forums

Download link redirects to Page Not Found. Help required (6 posts)

  1. Naeem
    Member
    Posted 3 years ago #

    Hi,
    My blog is sub-directory of my main zen site http://buy92.com/faqr is my blog. I just placed a download image on home page of blog with link to the original mp3 file placed in main directory structure, with this code:

    <img class="alignnone size-full wp-image-516" title="Download" src="http://www.buy92.com/faqr/wp-content/uploads/2009/05/download_qawali.png" alt="Download" width="24" height="24" />

    When one clicks on download link it goes to 'Page Not Found' rather download the mp3. I am sure there is no problem in my above code. I assume that problem may be in my .htaccess, can anyone help please?

  2. Naeem
    Member
    Posted 3 years ago #

  3. Naeem
    Member
    Posted 3 years ago #

    sorry i couldn't add full code earlier: i am trying with code tag now: <a href="http://buy92.com/mp3/yousaf/KALAM_SULTAN_BAHOO_PART_1.mp3" target="_blank"><img class="alignnone size-full wp-image-516" title="Download" src="http://www.buy92.com/faqr/wp-content/uploads/2009/05/download_qawali.png" alt="Download" width="24" height="24" /></a>

  4. Kapil Chugh
    Member
    Posted 3 years ago #

    If you try to access
    http://buy92.com/mp3/yousaf/KALAM_SULTAN_BAHOO_PART_1.mp3

    there is no mp3 file exists on this location.Rather when i tried to search http://buy92.com/mp3/ yousaf directory was also not there.

  5. Naeem
    Member
    Posted 3 years ago #

    Oh sorry bro, i was just testing things so changed the paths, everything is working fine but above mentioned issue is almost same. difference is only this that now it takes me to a page where only player is shown and the given link file is played automatically there. Still user can't download the file. Current files and link path is this:
    http://buy92.com/faqr/audio/mp3/yousaf/KALAM_SULTAN_BAHOO_PART_1.mp3

  6. Kapil Chugh
    Member
    Posted 3 years ago #

    To enable download on your site first you need to create custom page templates where you can write your download code
    For further info go to this link
    http://codex.wordpress.org/Pages
    and read Creating Your Own Page Templates

    Then you need one download script that will enable download when someone clicks on download link
    For more info
    http://elouai.com/force-download.php

Topic Closed

This topic has been closed to new replies.

About this Topic