
July 3rd, 2009, 04:41 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 329
 
Time spent in forums: 2 Days 23 h 12 m 47 sec
Reputation Power: 6
|
|
|
Htaccess AddHandler application/x-httpd-php - can it exclude a certain directory?
Hi,
We're trying to do a small update to a website built by someone else. On the htaccess, that someone has placed the following code:
Code:
AddHandler application/x-httpd-php .php .html .htm .xml
I have an xml file stored in a directory called "userfiles/xmldocuments/"
I need that file to be accessed directly (so when you go to the url such as www.mydomain.com/userfiles/xmldocuments/myfile.xml , then the xml should load.
HOWEVER, the above code prevents this and the server parses the file as PHP and gives me a syntax error.
Does anyone know how I can edit this code so that files within the "userfiles" directory (namely xml files) are EXCLUDED from this automatic parsing?
Many thanks!
|