Forum Moderators: phranque
user types: http://www.example.com/multimedia/rock/playlist.xml
redirect to: http://www.example.com/multimedia/rock/
user types: http://www.example.com/multimedia/rock/1/2/3/1/playlist.xml
redirect to: http://www.example.com/multimedia/rock/1/2/3/1/
user types: http://www.example.com/multimedia/rock/1/anotherfolder/3/1/playlist. xml
redirect to: http://www.example.com/multimedia/rock/1/anotherfolder/3/1/
and so on. As you have guessed, I am trying to redirect access from playlist.xml files to their respective folders. this is because my playlists are being indexed in the google and users wold not be able to understand them because these files only contain links in a text format. Also I do not wish to block these playlist from being indexed because more search results are matching my website because of these playlist.xml files.
I would really appreciate if someone could provide me with a sort of regular expression that can be applied.
[edited by: encyclo at 6:40 pm (utc) on Aug. 3, 2008]
[edit reason] switched to example.com [/edit]
I was wondering more in the lines of providing a better stylesheet for the xml document. If you have other ideas please let me know.