var posting = $.ajax({
type: 'POST',
url: 'https://www.xxxx.tld/../ajaxaddproduct/',
data: datapost,
crossDomain: true,
async:true
});
posting.done(function( data ) {
...
});
RewriteEngine On
RewriteBase /
# RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.dominio.tld for SEO
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]This question has been answered by mopmodx. See the first response.