I am presently working on a project which is basiaclly a Music Forum. The Forums include MP3 files. http://www.example.com/uploads/music.mp3 how can retrieve the the file name [mp3 filename] in the .htaccess file How to achieve this?
you are tryng to make the url like this http://www.example.com/uploads/music ? if yes you can use this command RewriteEngine On RewriteRule ^uploads/(.*) uploads/$1.mp3 [L]