header(“location”) causes [500] internal server error?

前端 未结 4 651
星月不相逢
星月不相逢 2020-12-04 03:16

I cannot figure out what could be causing this error. My Apache log is not recording any errors in the access log or error log regarding the page, yet somehow whenever I unc

4条回答
  •  温柔的废话
    2020-12-04 03:55

    Try to use a fully formed URL:

    header("Location: http://{$_SERVER['HTTP_HOST']}/offices/page-".ceil($cache->size() / 15));
    

提交回复
热议问题