.htaccess problem

Status
Not open for further replies.

wjh2303

New Member
Messages
139
Reaction score
0
Points
0
.htaccess reads as:

"AddType application/x-httpd-php .xml" (just the one entry)

to make it render .xml files as php, this is so i can use php/mysql to render an rss page that will update automatically. This works fine on my dev server, but when i try to put it onto the x10 server it all goes wrong, see http://lifeinmegapixels.com/rss.xml which when i visit it asks me how itd like to open the file, and on opening it it is just the original text with the php in it, rather than having been rendered by the server.

Something i need to do to make this work properly? it seems odd that it would work ok on the dev server but not live...
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Try:
Code:
AddHandler application/x-httpd-php5 .xml
AddHandler is now the proper way to associate a handler with a file extension. Alternatively, just give your script a ".php" extension. The file extension doesn't matter to the client. It's best to make your URIs extension-agnostic.
 
Last edited:
Status
Not open for further replies.
Top