To switch to PHP 7.1
1
|
AddHandler application/x–httpd–php71 .php .php5 .php4 .php3
|
To switch to PHP 7.0
1
|
AddHandler application/x–httpd–php70 .php .php5 .php4 .php3
|
To switch to PHP 5.6
1
|
AddHandler application/x–httpd–php56 .php .php5 .php4 .php3
|
To switch to PHP 5.5
1
|
AddHandler application/x–httpd–php55 .php .php5 .php4 .php3
|
To switch to PHP 5.4
1
|
AddHandler application/x–httpd–php54 .php .php5 .php4 .php3
|
To switch to PHP 5.3
1
|
AddHandler application/x–httpd–php53 .php .php5 .php4 .php3
|
This setting will apply recursively to all of the subdirectories. In case you’d like to have a different version of PHP in a subdirectory, create a new .htaccess file in it with the directive for the desired PHP version in it.