like my website work properly with WWW. but does not work without WWW.
see here :- www.ratlamkirana.com and ratlamkirana.com
i have asked opencart for this and i didn't get any reply

if you have the solution of this problem please tell us.
Code: Select all
# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Code: Select all
# Redirect www to non-ww
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.my-domain.com/');
// HTTPS
define('HTTPS_SERVER', 'http://www.my-domain.com/');
Users browsing this forum: No registered users and 4 guests