Forums / Installing on a Linux/Unix Server / change address from http://mysite.com to http://www.mysite.com

change address from http://mysite.com to http://www.mysite.com

Locked

Started by elisec on 25 Mar 2008, 12:48 AM · Views: 2,677

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Mar 2008, 12:48 AM
#1
elisec avatar

elisec

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
0

change address from http://mysite.com to http://www.mysite.com

Fresh install from my ISP HostGator. The store loads up to http://mysite.com not http://www.mysite.com. I edited both the includes/configure.php and admin/includes/configure.php and added the WWW. Site now comes up with http://www.mysite.com but know users can not login and there is no myaccount link in the header. I had to put both configure.php files back to default to get it working again. So what am I missing here? How to get the "WWW" back ?

Elise

25 Mar 2008, 3:46 AM
#2
fatguyinaz avatar

fatguyinaz

Zen Follower

Join Date:
Oct 2007
Location:
Safford, AZ
Posts:
313
Plugin Contributions:
0

Re: change address from http://mysite.com to http://www.mysite.com

Where exactly did you make the change in your configure.php file?

To my knowledge it must be changed in 2 files.

/includes/configure.php (around lines 17-18)
define('HTTP_SERVER', 'http://www.yoursite.com');
define('HTTPS_SERVER', 'https://www.yoursite.com');

/admin/includes/configure.php (around lines 29-32)
define('HTTP_SERVER', 'http://www.yoursite.com');
define('HTTPS_SERVER', 'https://www.yoursite.com');
define('HTTP_CATALOG_SERVER', 'http://www.yoursite.com');
define('HTTPS_CATALOG_SERVER', 'https://www.yoursite.com');

I believe that is all that needs to be done. I could be wrong, I have been before and I am sure I will be again.

Steve
Zen cart version: 1.3.9h

25 Mar 2008, 12:14 PM
#3
elisec avatar

elisec

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
0

Re: change address from http://mysite.com to http://www.mysite.com

Yes those were the lines I changed. But when I do, users can no longer log in.

26 Mar 2008, 2:32 PM
#4
elisec avatar

elisec

New Zenner

Join Date:
Mar 2008
Posts:
3
Plugin Contributions:
0

Re: change address from http://mysite.com to http://www.mysite.com

Never mind, I had a typo in the configure.php file. I have to learn to have coffee first in the morning before working on my site. :)