How can I run a PHP script under a different file extension?
First of all, the basics: running latest Ubuntu images with Serverpilot managing the server install.
I created a basic stats script (in the form of download.php?show=XX) for our radio station podcasts and everything works fine, except when trying to listen in iTunes. I checked, and here’s what Apple has to say about the matter:
The URL preceding GET-style form values (before the first “?”) must end in a media file extension (such as .mp3). Correct http://www.podcaster.com/load.mp3?f=&Wipeout.mp3 Incorrect http://www.podcaster.com/load.php?f=&Wipeout.php
How would I change my server config so that I could run my PHP script under an mp3 extension?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×