I am trying to change the php version in my server using htaccess. I am following this question's answer how to change php version in htaccess in server But did not work for me. When I entering my project, it's downloading a file. Would someone help me to solve this issue, please? Here is by .htaccess bellow-
<IfModule mod_rewrite.c> AddHandler application/x-httpd-php71 .php RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]</IfModule>