I have .htaccess
RewriteEngine On
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
I have ajax code looks like this
$.ajax({
type: "POST",
url: "contact-submit",
data: "name=" + name + "&email=" + email,
success : function(text){
if (text == "success"){
formSuccess();
} else {
formError(text);
}
}
});
in chrome (this code works)
url: "contact-submit",
in safari (this code works)
url: "contact-submit.php",
chrome code does not work on safari and safari code doesn't work on chrome
What should I do? please help