I have a website on which i am using sub domain to design the shopping area.
Example Website is http://avc.com
and subdomain is http://shop.avc.com/
. Subdomain points to shop
folder onto the server.
Now, i have a login script that resides in main website folder not in subdomain.
Ps: At the time of checkout i am giving option to user login i.e. the URL for checkout will be http://shop.avc.com/checkout
and the Login script is at http://avc.com/login/verify.php
Jquery used for AJAX call from subdomain is:
$.ajax({
url: '../login/verify.php',
type: 'POST',
data: dataString,
beforeSend: function(){
$("#loadingslogin").show();
},
complete: function(){
$("#loadingslogin").hide();
},
success: function(response) {
if(response != 5){
$('#responsesign').html("<p class='alert alert-danger'>Oops!
Something wrong happened.").fadeIn().delay(15000).fadeOut();
}
else{
$("input[type='text']").val('');
$("input[type='password']").val('');
$("#loadingslogin").hide();
window.location.replace('checkout');
}
}
});
But the verify.php
file is not getting executed. Any solutions please?