News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

AJAX ERROR - when WWW. isn't in URL

Started by evolancer, September 18, 2014, 08:44:50 PM

Previous topic - Next topic

evolancer

Under the settings: I have my full-site URL set too: "www .mysite. com" but when I'm typing in "mysite .com" into a browser its not redirecting it to  www .mysite .com with the "www" added in. This gives me an UNKNOWN AJAX ERROR when adding products to my cart. Is their a fix for this or is AbanteCart aware of this issue.

I'm also on the HTML5 Template if that helps.

Basara

Hello.

If you want to redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

This will redirect any requests from http://my-domain.com to http://www.my-domain.com.

evolancer


Forum Rules Code of conduct
AbanteCart.com 2010 -