Welcome guest! Login or Sign up!
Set my location
Home Ask Browse Photos Groups Advisors Widgets
Home » Server & Site Administration » Help with .htaccess

Help with .htaccess

Posted by harvinder 5 months ago
Send me Private Mail | Report Abuse

I would like to redirect all the xml files from my domain to the index file of the respective folder, I am not sure how should I do this using .htaccess. Could you please help, here is an example:

I have xml files in many subfolders of the main folder called multimedia and is directly accessible from the domainname.com/multimedia link. I would like to redirect access to any xml from the multimedia folder and any nested subfolders within multimedia folder to their respective folder. So for example I have a file called player.xmlat:

mydomain/multimedia/player.xml
redirect to mydomain/multimedia/

mydomain/multimedia/1/2/3/4/player.xml
redirect to mydomain/multimedia/1/2/3/4/

mydomain/multimedia/asdasdf/dfgh/player.xml
redirect to mydomain/multimedia/asdasdf/dfgh/

I hope you know what I mean from this, so could some one please help me with this?




Post an Answer:

Your Answer: HTML is not allowed.


Rss_feed    Myaol_cta1    Addtomyyahoo4    Add