douyi8408 2017-03-28 14:36 采纳率: 0%
浏览 33
已采纳

.htaccess在修改它时添加授权标头导致500错误(PHP服务Api)

I added the undermentioned script to my .htaccess file to enable adding of Authorization Header but causes 500 error on request to my php apis. Can anyone help me out? thank you.

RewriteEngine On
RewriteCond %{HTTP:Authorization}  ^(.*)$ 
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] 
  • 写回答

1条回答 默认 最新

  • dou31797719 2017-04-25 23:42
    关注

    The problem wasn't from the .htaccess file, i noticed the interval server error occured due to fetchall in mysqli which i didn't configured properly in my server. so, what i did is to enable nd_mysqli and all was fine and sound. thank you.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?