htaccess code for php version

felosi

Well-Known Member
#1
Well i know it was posted here before but I just cant find it. Ive tried nearly all on google for rewriting urls and forcing app types to no avail.

What would be the .htaccess code to make the server read the php files as php4 or php5?
 

ffeingol

Well-Known Member
#2
For 5 it's:

AddType application/x-httpd-php5 .php

We default to V4 so I'm not 100% sure if it's:

AddType application/x-httpd-php4 .php

or

AddType application/x-httpd-php .php

Frank
 
Top