【问题标题】:Apache rewrite rules working on one server but give 500 error on the other hostApache 重写规则在一台服务器上工作,但在另一台主机上给出 500 错误
【发布时间】:2011-10-20 11:13:29
【问题描述】:
RewriteRule ^([0-9]+_[0-9]+)/json(/)?$ /widget_json.php?id=$1 [L]

这条规则似乎在我的一个网站上运行良好 -> http://domainsoutlook.net/5_68528/json/1/

但同样的规则在链接上产生 500 错误 -> http://cheernuts.com/5_68528/json/1/

两台服务器都启用了 mod_rewrite...

你能帮我解决这个问题吗?

谢谢

【问题讨论】:

    标签: apache http url rewrite


    【解决方案1】:

    确保在 PHP 中打开了错误,并且应该会向您显示错误。否则可能是其他一些 php 错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多