SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Non-Member
    Join Date
    Sep 2000
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey there,
    I am the owmer of MP3cities.com, rite now I am in a hole, what I need is I need to configure my server so that when someone types in there browser a file type .mp3
    I.E. http://www.mp3cities.com/download.mp3

    it will take them to a download page where they have to click on a button to download the file...
    Alot of sites use this like webjump, homestead and more... I had a guy working on it but he got into a hole that he could not climb out of...

    Thanks alot and hope to hear from all you geniuses out there!

    [Edited by wluke on 09-05-2000 at 06:59 AM]

  2. #2
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if this would work but you could name it download.mp3.php or something, and use a .htaccess file to hide the extensions.
    That would hopefully mean that .php would be hidden and .mp3 would show.
    You could also set your webserver up (in your Apache Config file) so that .mp3 files are passed to the PHP handler or whatever language you want to make the page in.

    Hope that helps!

  3. #3
    SitePoint Member
    Join Date
    Sep 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Sir,

    Could you please explian this a bit more? I think this can be solved, but I need more info. Feel free to contact me on icq# 71401549

    Thanks,
    Isaac
    [www.disegno.com]www.disegno.com[/url] -Coming Soon
    isaccofedele@yahoo.com

  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add this to your .htaccess file:

    <FilesMatch ".*\.mp3$">
    ForceType text/html
    </FilesMatch>

    This will force all files with an extension of .mp3 to be served as HTML then all you have to do is name the html files with a .mp3 extension.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •