Zen Cart Logo
Forums / General Questions / double slashes in URL ??

double slashes in URL ??

Locked

Views: 2,517

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
9 Apr 2008, 7:02 PM
#1
papadopoulos avatar

papadopoulos

New Zenner

Join Date:
May 2006
Posts:
14
Plugin Contributions:
0

double slashes in URL ??

Hi,

I edited the two config files for SSL usage. Now on all pages I am seeing two slashes before my Zen-Cart install directory in the URL, like this:

http://www.myowndomain.com**//**zen/index.php

Functionality seems to be fine. Any ideas what is causing that and should I worry about it? Below in bold are my edits to the configure.php files.

This is what I did in includes/configure.php:

// 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://https://www.myowndomain.com/');
define('HTTPS_SERVER', 'https://https://www.myowndomain.com/');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

This is what I did in admin/includes/configure.php:

define('HTTP_SERVER', 'https://https://www.myowndomain.com');
define('HTTPS_SERVER', 'https://https://www.myowndomain.com');
define('HTTP_CATALOG_SERVER', 'https://https://www.myowndomain.com');
define('HTTPS_CATALOG_SERVER', 'https://https://www.myowndomain.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

Thank you,
P

9 Apr 2008, 7:18 PM
#2
papadopoulos avatar

papadopoulos

New Zenner

Join Date:
May 2006
Posts:
14
Plugin Contributions:
0

Re: double slashes in URL ??

papadopoulos:

This is what I did in includes/configure.php:

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

apparently the trailing slashes in the domain name caused that. I removed the trailing slashes and all is good.

P

10 Apr 2008, 3:50 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: double slashes in URL ??

Thanks for the update on what changes you had to make to your configure.php files to fix the double slashes in the URLs ...

It is always a great help to others to see the solution as well as the problem ... even when you trip over the solution on your own ... :smile:

14 Apr 2008, 6:04 AM
#4
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: double slashes in URL ??

I did not change anything, but am also getting the double slashes.

I did a fresh install of zen 1.3.8 (used the auto-install function of my webhost which has always worked without a problem in the past). And now i get the strange double slash no matter what page I browse to.

home page then becomes: http://www.fake.com//
admin page is: http://www.fake.com//admin/login.php
etc.

I do not need to type in the double slash...it just appears on its own and never goes away.

:huh:

14 Apr 2008, 6:09 AM
#5
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: double slashes in URL ??

Could it be the double slashes in this line in includes/config.php?

define('DIR_WS_CATALOG', '//');
define('DIR_WS_HTTPS_CATALOG', '//');

:huh:

14 Apr 2008, 6:16 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: double slashes in URL ??

Yes, those double slashes will be the problem.

14 Apr 2008, 6:29 AM
#7
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: double slashes in URL ??

DrByte:

Yes, those double slashes will be the problem.

OK, thanks for the confirm. I changed those two lines to:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

Now the problem has disappeared. Mystery solved. Thanks!

How did those double slashes get in there? Is this something that my webhost's auto-install creates? Or is it a mis-type in the zen 1.3.8 original config file?

I would guess it must be my webhost's problem since it does not seem like anyone else here has mentioned it (except for the guy who started this thread, but his problem was different).

14 Apr 2008, 7:39 AM
#8
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: double slashes in URL ??

For the benefit of others, I also had to make the same changes in the admin/includes/configure.php file to prevent these double slashes from appearing in the admin pages.

14 Apr 2008, 3:32 PM
#9
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: double slashes in URL ??

Just double checked the zencart 1.3.8a original files from the zencart download, and those files (dist-config.php and dist-configure.php) only have single slashes instead of the incorrect double slashes. So the problem was created by bluehost's auto-install of zencart.