htaccess不能在cPanel上工作,但在wampserver上工作正常
问题描述:
当我尝试在使用cPanel的服务器上发布我的网站时,我遇到了错误,网站工作正常,在wserver中工作正常,我认为问题可能来自htaccess的文件至极生成我一个500错误htaccess不能在cPanel上工作,但在wampserver上工作正常
,这里是我的htaccess
php_flag display_errors on
php_value error_reporting 9999
RewriteEngine On
RewriteBase/(because my files are in public_html)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
这是我第一次在计算器,请帮我
答
万一有人经过这里只是删除的php_flag和php_value从你.htaccess因为一些托管c ompagnies不允许用户使用它们,就像在我的情况下一样
您应该将其标记为答案。 – topher 2015-04-13 11:00:13