- 前端網站:WordPress的
- 後端:笨
笨實例保存在名爲後端文件夾。
設置後端測試環境爲。
- 文件夾名稱:團隊
- 笨是安裝在: ABC文件夾
那麼路徑將是如下:
publichtml/team/abc
現在嘗試登錄有一個404找不到錯誤。
任何一個可以幫助我什麼在腳本去錯:
POST https://example.com/team/abc/index.php/login/authenticateUserWeb
:<script>
function sendData() {
var username = $("#username").val();
var userpass = $("#userpass").val();
$.post('https://example.com/team/abc/index.php/login/authenticateUserWeb',{ 'username': username, 'userpass': userpass }, function(data) {
alert(data);
if(data == 'success'){
window.location = "https://example.com/team/abc/index.php/companyadmin/folders";
}else if(data == 'successuser'){
window.location = "https://example.com/team/abc/index.php/companyuser";
}else if(data == 'expired'){
window.location = 'https://example.com/team/abc/index.php/companyadmin/selectPacakge';
}else{
$("#user").html(data);
//alert(data);
}
});
}
現在,當我試圖在控制檯日誌中發現以下錯誤簽名
301 Moved Permanently
jquery-1.10.2.js (line 6)
GET https://example.com/team/abc/login/authenticateUserWeb
404 Not Found
https://example.com/team/abc/login/authenticateUserWeb「
NetworkError: 404 Not Found
不知道,但我注意到,index.php文件已經從https://example.com/team刪除/abc/index.php/login/authenticateUserWeb和url是像GET一樣的變化https://example.com/team/abc/login/authenticateUserWeb –
這裏是我的配置文件:$ config ['base_url'] =「https:/ /example.com/team/abc/「; $ config ['index_page'] ='index.php'; $ config ['allow_get_array'] \t \t = TRUE; $ config ['enable_query_strings'] = FALSE; $ config ['controller_trigger'] \t ='c'; $ config ['function_trigger'] \t \t ='m'; $ config ['directory_trigger'] \t ='d'; –
我認爲問題在於HTACCESS –