Results 1 to 2 of 2

How do you make all pages secure?

This is a discussion on How do you make all pages secure? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; my catalog/admin page is secure but every page underneath it isn't. In other words when I click on the configuration ...

      
  1. #1
    Lurker
    Join Date
    Jul 2004
    Posts
    1
    Rep Power
    0


    Default How do you make all pages secure?

    my catalog/admin page is secure but every page underneath it isn't. In other words when I click on the configuration link, it takes me to an http:// page instead of an https:// page. I can add the s afterwords, but how do I have it go to the https page in the first place?

    I thought the links were hard coded but when I look at the index.php page it shows this:

    'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),

    now I found a reference to tep_href_link in the catalog/admin/include/functions/html_output.php file that says:

    function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') { if ($page == '') {
    die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');
    }
    if ($connection == 'NONSSL') {
    $link = HTTP_SERVER . DIR_WS_ADMIN;
    } elseif ($connection == 'SSL') {
    if (ENABLE_SSL == 'true') {
    $link = HTTPS_SERVER . DIR_WS_ADMIN;
    } else {
    $link = HTTP_SERVER . DIR_WS_ADMIN;
    }


    This to seems to mean to me that I need to enable ssl somewhere but where?

    Steve Cohen

  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    admin/includes/configure.php
    have a look at these:
    I set all of mine to the secure server for the individual site.

    Code:
     define('HTTP_SERVER', 'https://yourdomain.com'); // eg, http://localhost - should not be empty for productive servers
      define('HTTP_CATALOG_SERVER', 'https://yourdomain.com');
      define('HTTPS_CATALOG_SERVER', 'https://yourdomain.com');
      define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

Similar Threads

  1. how do i make an infobox hidden on some pages but not all?
    By technoboy in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 03-02-2006, 01:43 AM
  2. Suppressing link xchange banners on secure pages
    By ianmel in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-25-2004, 05:06 AM
  3. Secure Catalog pages
    By Skidude in forum osCommerce 2.2 Modification Help
    Replies: 10
    Last Post: 11-17-2003, 06:57 AM
  4. Secure Catalog Pages
    By ishann in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 08-22-2003, 03:25 AM
  5. Whats the best way to make and add new pages
    By Dutchy in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 01-10-2003, 11:34 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
  •