Zen Cart Logo
Forums / General Questions / Home link pointing to www. not just http://

Home link pointing to www. not just http://

Locked

Views: 2,605

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
8 Feb 2007, 7:28 AM
#1
ozminiatures avatar

ozminiatures

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Home link pointing to www. not just http://

Hi all, i signed up awhile ago, but until now i found all the answers i needed covered by previous threads

But i'm having a very minor problem, its not much a big deal, but i'd like to get it fixed if possible.

Basically, my 'home' link goes to http://mydomainname.com rather than http://www.mydomainname.com, and i'd like it to point to the latter

In /includes/configure.php i changed :
HTTP_SERVER
HTTPS_SERVER

In /admin/includes/configure.php i changed:
HTTP_SERVER
HTTPS_SERVER
HTTP_CATALOG_SERVER
HTTPS_CATALOG_SERVER

So those then had the http://www. infront rather than just http://

After doing that, the home link pointed to the right thing, but the problem was, whenever i tried to login, it wouldn't do anything. It just went back to the home page without actually logging in..

I guess i need to change another thing but i can't figure out what that would be, can anyone help me with this?

Cheers

8 Feb 2007, 4:18 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Home link pointing to www. not just http://

What are your Session Settings?

9 Feb 2007, 12:56 AM
#3
ozminiatures avatar

ozminiatures

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

My session settings are :

Session directory - /var/www/vhosts/mydomainname.com/httpdocs/cache
Cookie Domain - True
Force Cookie Use - False
Check SSL Session ID - False
Check User Agent - False
Check IP Address - False
Prevent Spider Session - True
Recreate Session - True
IP to Host Conversion Status - True

I tried putting www. infront of the domain in the session directory, but it didnt change anything

9 Feb 2007, 12:58 AM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

Please post the includes/configure.php without your passwords.

9 Feb 2007, 1:55 AM
#5
ozminiatures avatar

ozminiatures

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

Ok here it is :

<?php /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> define('HTTP_SERVER', 'http://ozminiatures.com'); define('HTTPS_SERVER', 'https://ozminiatures.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/var/www/vhosts/ozminiatures.com/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_SERVER', '*****'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', '*****'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/var/www/vhosts/ozminiatures.com/httpdocs/cache'); ?>
9 Feb 2007, 3:24 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

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

Change the above lines to include the www. You will need to change your admin/includes/configure.php the same way.

9 Feb 2007, 3:34 AM
#7
ozminiatures avatar

ozminiatures

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

Kim:

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


Yeah that is what i originally did, and then the home link points to where i want it

But then the problem is, whenever i try to login as a customer, it just keeps going back to the main page without actually logging in, it doesn't say any error during logging in, it just doesnt seem to acknowledge that my user is now logged in
10 Feb 2007, 6:43 AM
#8
ozminiatures avatar

ozminiatures

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

I'm thinking that maybe there is a file somewhere that i need to add a www. to, which directly works with whatever scripts deal with logging in or something, or maybe its a cache thing

10 Feb 2007, 1:43 PM
#9
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Home link pointing to www. not just http://

nope,
the only place that the www. needs to be adjusted is the config files
I can get to the login page, please try resetting it again with the www. and lets see what happens

make sure to close your browser to clear any cache

10 Feb 2007, 1:51 PM
#10
ozminiatures avatar

ozminiatures

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

Merlinpa1969:

nope,
the only place that the www. needs to be adjusted is the config files
I can get to the login page, please try resetting it again with the www. and lets see what happens

make sure to close your browser to clear any cache

Well i just changed the files back to include www.

And tried it with internet explorer, and now i can login and it actually sees that im logged in...

So yeah, i guess it was my browsers cache :blush:

Thanks for pointing that out! I can't believe i didn't think of it

Thanks again :D

10 Feb 2007, 1:57 PM
#11
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Home link pointing to www. not just http://

glad that is solved
have a good night

11 Feb 2007, 9:37 PM
#12
nomadrip avatar

nomadrip

Zen Follower

Join Date:
Feb 2007
Location:
Calabasas, CA &amp; St. Pete, FL
Posts:
87
Plugin Contributions:
0

Re: Home link pointing to www. not just http://

Kim:

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


Thanks for posting this thread...I was having the same problem, but figured I hadn't been the first one!:D