Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

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

  2. #2
    Join Date
    May 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: double slashes in URL ??

    Quote Originally Posted by papadopoulos View Post
    This is what I did in includes/configure.php:


    define('HTTP_SERVER', 'http://www.myowndomain.com/');
    define('HTTPS_SERVER', 'https://www.myowndomain.com/');
    apparently the trailing slashes in the domain name caused that. I removed the trailing slashes and all is good.


    P

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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!

  4. #4
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default 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.


  5. #5
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default 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', '//');


  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: double slashes in URL ??

    Yes, those double slashes will be the problem.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: double slashes in URL ??

    Quote Originally Posted by DrByte View Post
    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).

  8. #8
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default 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.

  9. #9
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v150 2 Slashes in URL
    By lwilliams374 in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2012, 07:52 PM
  2. Odd double slashes in path to Sidebox Title Image
    By Hell Guapo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Jan 2012, 07:37 PM
  3. New Cart install has double forward slashes (//)
    By zhenjie in forum General Questions
    Replies: 1
    Last Post: 18 Oct 2010, 07:47 AM
  4. double url in my links
    By TALES75 in forum General Questions
    Replies: 11
    Last Post: 11 May 2010, 09:42 AM
  5. Double slashes in URLs, mod_rewrite at fault?
    By rstevenson in forum Customization from the Admin
    Replies: 5
    Last Post: 16 Nov 2006, 04:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg