osCmax v2.5 User Manual
Page 5 of 5 FirstFirst ... 345
Results 41 to 44 of 44

setup guide for http to https?

This is a discussion on setup guide for http to https? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I just want to make sure I am getting this straight. If I delcare some other page in my configure.php ...

      
  1. #41
    New Member
    Join Date
    Feb 2003
    Posts
    10
    Rep Power
    0


    Default

    I just want to make sure I am getting this straight. If I delcare some other page in my configure.php files to be the HTTP:// root, then my pages should get all wacky, right? so if I change
    Code:
      define('HTTP_SERVER', 'http://www.brunsflooringsupply.com');
      define('HTTPS_SERVER', 'https://www.brunsflooringsupply.com'); 
      define('ENABLE_SSL', true);
    to
    Code:
      define('HTTP_SERVER', 'http://ohwhataworld.com'); 
      define('HTTPS_SERVER', 'https://ohwhataworld.com'); 
      define('ENABLE_SSL', true);
    then all my links should be messed up, right??
    Because when I do this, NOTHING CHANGES!! I wonder if my server could be caching pages or something? I'm on a shared web host and I can't see why this would not be working.

    Kyle

  2. #42
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Do you have the cache turned off in the admin section? If so, it is most likely being cached by your server or an intermediate along the way. You should put nocache tags in the head section of your pages. It could take a while for the cached to clear...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #43
    New Member
    Join Date
    Feb 2003
    Posts
    10
    Rep Power
    0


    Default

    nope, caching is not turned on. Though as I am changing thigs, I am noticing some interesting problems. If I manually set one of my links to SSL:
    Code:
    tep_href_link(FILENAME_DEFAULT, '', 'SSL')
    the URL comes up with :
    http://brunsflooringsupply.com/admin...dmin/index.php
    but another link on the same page comes up with the URL from my configure.php file.

  4. #44
    New Member
    Join Date
    Feb 2003
    Posts
    10
    Rep Power
    0


    Default

    OK, after some palying around with different files, I traced the URL functions to the html_output. There I changed:
    Code:
        if ($connection == 'NONSSL') {
          $link = HTTP_SERVER . DIR_WS_CATALOG;
        } elseif ($connection == 'SSL') {
          if (ENABLE_SSL == true) {
            $link = HTTPS_SERVER . DIR_WS_CATALOG;
          }  else {
          $link=HTTPS_SERVER . DIR_WS_CATALOG . $connection;
          }
        } else { die(ect.)  }
    to:
    Code:
        if ($connection == 'NONSSL') {
          $link = HTTP_SERVER . DIR_WS_CATALOG;
        } elseif ($connection == 'SSL') {
          if (ENABLE_SSL == true) {
            $link = HTTPS_SERVER . DIR_WS_CATALOG;
          } elseif ($connection == 'NONSSL') {
           $link = HTTP_SERVER . DIR_WS_CATALOG;
          } else {
           $link=HTTPS_SERVER . DIR_WS_CATALOG . $connection;
          }
        } else {  die( ect. ) }
    and this appeared to solve my issue. Now all the appropriate links have SSL enabled. So my question is this: If the ENABLE_SSL is not true or false, what else could it be. My configure.php is:
    Code:
      define('ENABLE_SSL', true);
    I am totally confused about what is hanging me up, but I do believe that it has to do with the declaration of ENABLE_SSL, but I don't know how else it could be defined. I know that the links are passing 'SSL', but the ENABLE command that is throwing me.

    Thank you for your help

Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. https:// Admin redirects to http://
    By driwashsolutions in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 01-23-2006, 06:41 PM
  2. admin login goes https to http???
    By john- in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-23-2003, 06:19 AM

Bookmarks

Posting Permissions

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