Cara Mengubah Versi PHP Dengan .htaccess

  • Home
  • PHP
  • Cara Mengubah Versi PHP Dengan .htaccess
cara ubah versi php dengan htaccess
Jul 16, 2021

Apabila Anda ingin mengubah versi PHP pada file .htaccess, gunakan rule di bawah ini, cukup copy paste sesuai versi yang anda pilih

Versi 5.1

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php51___lsphp
</FilesMatch>

Versi 5.2

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php52___lsphp
</FilesMatch>

Versi 5.3

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php53___lsphp
</FilesMatch>

Versi 5.4

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php54___lsphp
</FilesMatch>

Versi 5.5

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php55___lsphp
</FilesMatch>

Versi 5.6

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php56___lsphp
</FilesMatch>

Versi 7.0

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php70___lsphp
</FilesMatch>

Versi 7.1

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php71___lsphp
</FilesMatch>

Versi 7.2

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php72___lsphp
</FilesMatch>

Versi 7.3

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-httpd-alt-php73___lsphp
</FilesMatch>

Penggunaannya cukup copy dan paste pada file .htaccess hosting Anda, maka versi PHP akan menyesuaikan dengan yang Anda atur.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments