Reputation: 107
I have the problem on Opencart. in my config.php file, defined define('HTTP_SERVER', 'http://example.com/'); in front end, http://example.com work well, but http://www.example.com not working
But, http://example.com/admin and http://wwww.example.com/admin is all working well. it's strange. This is .htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
RewriteBase /
Upvotes: 0
Views: 1345
Reputation: 72
Try to edit your config URL to match the following
Public Config
// HTTP
define('HTTP_SERVER', 'http://www.quickee.lk/');
// HTTPS
define('HTTPS_SERVER', 'https://www.quickee.lk/');
Admin Config
// HTTP
define('HTTP_SERVER', 'http://www.quickee.lk/admin/');
define('HTTP_CATALOG', 'http://www.quickee.lk/');
// HTTPS
define('HTTPS_SERVER', 'https://www.quickee.lk/admin/');
define('HTTPS_CATALOG', 'https://www.quickee.lk/');
Upvotes: 3