I've an application working on my local, and am in a phase of transitioning the same code to another server.
Code works on old version, however at new location PHP code fails. It is AJAX Get request is failing.
I get error:
[text]
The requested URL /pims/public/illumina/illumina_xhr_get_samples was not found on this server.
[/text]
My local host points to ~/Sites
New apache version:
Server version: Apache/2.4.18 (Unix)
Old Apache version:
Server version: Apache/2.2.29 (Unix)
Old Php version:
PHP 5.5.24 (cli) (built: Apr 17 2015 18:54:39)
New Php version:
PHP 5.5.34 (cli)
New here means new physical location
Old means my machine
Ajax request looks like:
Code: Select all
$.ajax({
mtype:"GET",
url:"illumina/illumina_xhr_get_samples",
data:{stdy:'study_name'},
datatype: "json",
success:function(data){
alert("wow");
},
error:function(){
console.log("the value");
alert("error");
}
});
Code: Select all
Route::group(['prefix' => 'illumina', 'namespace' => 'TGen\\Controllers\\illumina','before' => 'pims_auth'], function() {
if(Request::ajax()){
// xhr in all requests so to distinguish AJAX from any other
Route::get('illumina_xhr_get_samples','mainIllumina@get_illumina_samples');
}
});
Please help.