![](/img/trans.png)
[英]CodeIgniter Rest Server with Backbone, DELETE and PUT requests return 404
[英]CodeIgniter post functions return 404 on dev server
將現有的 codeigniter 應用程序移至新服務器以執行一些代碼更新。 除了使用 POST 的任何方法返回 404 外,一切都正常工作。
例如:
function export_xls(){
echo "HERE";
if($this->input->post()){
我將能夠擊中回聲,但它會在 404
$this->input->post()
我嘗試更改 config.php 中的 base_url 和 htaccess 中的其他內容,看看是否有幫助,但沒有任何證據證明是成功的。
所有其他未調用 post 值的函數都可以正常工作。
Live url (where everything works) is http://admin.xxxxxx.com and dev is http://crm-admin.srv-y7z9u.xxxxxxx.com if that provides any insight.
嘗試檢查一些可能會妨礙您的問題。
首先查看鏈接是否正確定向到頁面,然后執行一些可以幫助您的步驟:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.