0

我得到一个错误,同时开口道:获得500内部服务器错误,而使用的.htaccess

内部服务器错误 服务器遇到一个内部错误或配置错误,无法完成您的请求。 请联系服务器管理员[email protected]****.**,并通知他们错误发生的时间以及您可能会造成错误的任何可能的事项。 有关此错误的更多信息可能在服务器错误日志中可用。

这是我的代码:

RewriteEngine On 
RewriteRule index.html index.php 
RewriteRule history.html historyp.php 
RewriteRule h-general.html historyp.php?page=overall 
RewriteRule h-tajik.html historyp.php?page=tajik 
RewriteRule h-woman.html historyp.php?page=woman 
RewriteRule timeline.html hronika.php 
RewriteRule t-tajik.html tajikchron.php 
RewriteRule t-overall.html overchron.php 
RewriteRule time.html chronm.php 
RewriteRule heroes.html heroesp.php 

它工作在我的本地主机,但是当我把它上传到服务器,它提供了错误这样。 感谢

回答

0

,如果你在你的.htaccess,其中误差包括尝试使用不允许你通过AllowOverride directive使用命令的错误,这会发生,所以你很可能缺乏

AllowOverride FileInfo 

在你的生产服务器配置中。