I’ve developed a plugin that (among other things) downloads .mp3 files. In order to keep track of stats, it does this by using a URL something like this: /download.php?file_name=fn.mp3
This is fine – except iTunes has a ‘feature‘ that means it only recognises URLs that have a .mp3 extension not a PHP extension.
I know I could manually add rules to .htaccess to solve this. But my question whether (and if so, how) I can use WP_Rewrite instead. This obivously gives more more control within the WP environment, and should be more reliable. I guess I’d be changing /download.php?file_name=fn.mp3 to /download/fn.mp3
Thanks in advance,
- The topic ‘Using WP_Rewrite to create non-WordPress re-write rules’ is closed to new replies.