Forums / Basic Configuration / switching to www.sitename.com

switching to www.sitename.com

Locked

Views: 2,692

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
22 Feb 2008, 4:04 PM
#1
dubird avatar

dubird

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

switching to www.sitename.com

Ok, here's the problem. I have Zencart installed and working, with SSL. However, the certificate we have is for https://www.printographics.com. Zencart uses just printographics.com (no www). That renders our certificate invalid. When I try to change the config file to add the www, I'm unable to log in as a customer. Is there another spot I have to change that?

Please help! This is the third issue I've had (the other two have not been resolved, even the one back in October), and I've very frustrated with lack of support here.

22 Feb 2008, 4:15 PM
#2
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: switching to www.sitename.com

i would say you had missed one of the many places you need to add www in the config files

22 Feb 2008, 4:16 PM
#3
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: switching to www.sitename.com

you could also modify your .htaccess to add the www

22 Feb 2008, 4:17 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: switching to www.sitename.com

Dubird:

and I've very frustrated with lack of support here.

That's the sad thing about free advice... You can always offer to pay someone to assist - then you call the shots...

Generally, if your cert was issued WITHOUT the WWW, then the simplest solution is to ditch the cert and get another one with WWW.

Sounds like that you will have problems trying to configure redirects. A similar issue was raised a few days ago and I recall there being a .htaccess solution to this.

Search the forum for SSL .htaccess .

20 years a Zencart User

22 Feb 2008, 4:20 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: switching to www.sitename.com

Just re-read your post... if your zencart is operating without the www, then take a close look at your configure.php files .

20 years a Zencart User

22 Feb 2008, 4:22 PM
#6
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: switching to www.sitename.com

Chrome Orange:

i would say you had missed one of the many places you need to add www in the config files

4 places, 2 in the admin config and 2 in the store config, off the top of my head

25 Feb 2008, 7:05 PM
#7
dubird avatar

dubird

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Re: switching to www.sitename.com

First off, thank you for replying. ^^

Ok, the lines i changed were:

define('HTTP_SERVER', 'http://printographics.com');
define('HTTPS_SERVER', 'https://printographics.com');

to add the www. And that's when it messes up. The cert was issued with the www, so that's what i want to add it. I don't see anyother spot in either configure file where it would be added.

25 Feb 2008, 7:11 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: switching to www.sitename.com

You should just change:

define('HTTP_SERVER', 'http://printographics.com');
define('HTTPS_SERVER', 'https://printographics.com');

to be:

define('HTTP_SERVER', 'http://www.printographics.com');
define('HTTPS_SERVER', 'https://www.printographics.com');

NOTE: both configure.php files:
/includes/configure.php
/admin/includes/configure.php

should reflect these changes for all of the HTTP_ settings ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Feb 2008, 7:17 PM
#9
dubird avatar

dubird

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Re: switching to www.sitename.com

That's what I did do, but it would basicly do the page like this. It's not doing it now, and I did find one in the configure file for the admin that i missed, but now I can't login at all. No error, it just sends me back to the login page.

25 Feb 2008, 7:23 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: switching to www.sitename.com

You appear to have errors on your site ...

Check that there are not extra characters, spaces or blank lines at the top of the configure.php file as I am seeing junk on your site now ...

Also be sure the the configure.php file is set to 644 or 777 to overwrite with the new changes and then set it back to 644 or 444 depending on what your site requires ...

NOTE: A file set to 444 cannot be overwritten ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Feb 2008, 7:29 PM
#11
dubird avatar

dubird

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Re: switching to www.sitename.com

The link there is the old one. I had a thread about that that never got answered, so we ended up just doing a fresh install. I just left that up for a while in case someone did answer the thread. I have no idea what went wrong, the junk characters on the top are NOT in any of the template or config files, and i have no idea why it did that.

As for the current installiation, I finally did get something to work. Someone suggested searching for using .htaccess with SSL. I never did find anything about that, but I did find someone who turned the cookie domain in the admin-configureation-sessions to False instead of True. I had to go back to the original configure files, change that, and then uploading the new ones seems to work. Now, my question is will that be a good idea? Turning the cookie domain to false, i mean.

25 Feb 2008, 9:33 PM
#12
dubird avatar

dubird

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Re: switching to www.sitename.com

Ok, it didn't work completly. An outside link is still forced to printographics.com instead of https://www.printographics.com. Even when I put the www in the link, that first page will end up just being printographics.com.

Once you're there, all the other links are fine. Just that first page when you come in from outside.