rommany Posted June 3, 2005 Share Posted June 3, 2005 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 Link to comment Share on other sites More sharing options...
Guest Posted June 3, 2005 Share Posted June 3, 2005 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 <{POST_SNAPBACK}> 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 More sharing options...
rommany Posted June 3, 2005 Author Share Posted June 3, 2005 Thank hans Link to comment Share on other sites More sharing options...
Guest Posted July 24, 2005 Share Posted July 24, 2005 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'); <{POST_SNAPBACK}> which directory is it in? can't seemed to find any config.php in domain.com folder Link to comment Share on other sites More sharing options...
Guest Posted July 24, 2005 Share Posted July 24, 2005 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 More sharing options...
♥Vger Posted July 24, 2005 Share Posted July 24, 2005 You need a 301 - Permanent Redirect via .htaccess in the root of your web. Take a look here: http://www.webmasterworld.com/forum3/14412.htm Vger Link to comment Share on other sites More sharing options...
Guest Posted July 24, 2005 Share Posted July 24, 2005 Thanks Vger, that was it! :thumbsup: From that forum (page you gave me) I got to another page: http://www.webmasterworld.com/forum23/1600...ht=301+redirect That takes care for the loop problem too. Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.