[英]change php version using .htaccess in cpanel is not working
I am trying to change the php version in my server using htaccess.我正在尝试使用 htaccess 更改服务器中的 php 版本。 I am following this question's answer how to change php version in htaccess in server But did not work for me.我正在关注这个问题的答案how to change php version in htaccess in server但对我不起作用。 When I entering my project, it's downloading a file.当我进入我的项目时,它正在下载一个文件。 Would someone help me to solve this issue, please?请问有人能帮我解决这个问题吗? Here is by .htaccess bellow-这是 .htaccess 波纹管 -
<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>
Finally, AddHandler application/x-httpd-php70 .php
worked for me.最后, AddHandler application/x-httpd-php70 .php
为我工作。 Thank you!谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.