Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

my site goes from http://www.xxx to http://xxx


rommany

Recommended Posts

Hello,

 

Not sure if this is a problem or not, when i first go to my site it says http://www.xxxxxx.co.uk but when i browse around the address goes to http://xxxxx.co.uk and loses the www bit and that also happens when i hit home does this matter ? when i have seen other people sites that does not happen.

Many thanks

 

 

Hi,

 

Chek your config.php file. Should be something like this

 

define('HTTP_SERVER', 'http://www.xxx.com');

define('HTTPS_SERVER', '');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.xxx.com');

Link to comment
Share on other sites

  • 1 month later...
Hi,

 

Chek your config.php file. Should be something like this

 

define('HTTP_SERVER', 'http://www.xxx.com');

  define('HTTPS_SERVER', ''); 

  define('ENABLE_SSL', false);

  define('HTTP_COOKIE_DOMAIN', 'www.xxx.com');

 

which directory is it in? can't seemed to find any config.php in domain.com folder

Link to comment
Share on other sites

Its the configure.php in the catalog\includes directory. I have the same problem but I believe its not only the configure.php. The .htaccess of the domain root controls redirection for subdomains.

 

I was able to modify it to get rid of a trailing slash problem that will switch the sub-domain part. But between www.domain.com and domain.com I am still trying to figure it out. In other words I want to redirect whatever comes to domain.com towards www.domain.com If someone knows the apache config necessary for this please let me know.

Engines treat them like different domains and some of the scripts i have for cacheing images rely on the first part of the domain.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...