- 前端网站: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 –