Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    78
    Plugin Contributions
    0

    Default Https not working on admin

    Hi- Security is working on my catalog, if I check out the url turns into https. But on the admin, if I go into it using https, and click on any link, the url changes back to plain old http. Here is the code I'm using(It's my own certificate, not shared, and I'm using my actual domain name):

    define('HTTP_SERVER', 'http://mysite.com');
    define('HTTPS_SERVER', 'https://mysite.com');
    define('HTTP_CATALOG_SERVER', 'http://mysite.com');
    define('HTTPS_CATALOG_SERVER', 'https://mysite.com');

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

    Can anyone help? Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Https not working on admin

    There should be another line under the top four that says: define('ENABLE_SSL', 'true'); Add this and see what happens.

    define('HTTP_SERVER', 'http://mysite.com');
    define('HTTPS_SERVER', 'https://mysite.com');
    define('HTTP_CATALOG_SERVER', 'http://mysite.com');
    define('HTTPS_CATALOG_SERVER', 'https://mysite.com');
    define('ENABLE_SSL', 'true');

    This is also the admin/includes/configure.php right?
    Last edited by MagicMan; 31 Jan 2009 at 05:35 PM.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Https not working on admin

    Changes to the overall admin infrastructure will happen during the admin rewrite phase, scheduled for a future release.
    Meanwhile, follow the instructions in the configure.php file for making all admin pages handled by SSL.
    If for some reason your file doesn't contain that info, there are many forum threads discussing the topic. Here's one recent one: http://www.zen-cart.com/forum/showthread.php?t=113610
    .

    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.

  4. #4
    Join Date
    Aug 2008
    Posts
    78
    Plugin Contributions
    0

    Default Re: Https not working on admin

    Hi- Thanks for the advice, MagicMan. I added the line define('ENABLE_SSL', 'true');, (And you're right, it was admin/includes/configure.php), but I have the same problem.

    Dr.Byte, thanks for that thread, and I've followed the instructions there, but with the same result.

    Now I have:

    define('HTTP_SERVER', 'https://mysite.com');
    define('HTTPS_SERVER', 'https://mysite.com');
    define('HTTP_CATALOG_SERVER', 'https://mysite.com');
    define('HTTPS_CATALOG_SERVER', 'https://mysite.com');
    define('ENABLE_SSL', 'true');
    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', 'true');

    But if I click around within admin, I still go back to http.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Https not working on admin

    And ... when you made those edits and uploaded the changes to the server, did the upload actually happen properly?
    If the file on the server is marked as read-only (which it should be for security reasons), then you need to mark it as writable before you can upload changes to it. Then mark it read-only again.
    Otherwise your changes won't take effect.
    .

    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.

  6. #6
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Https not working on admin

    This may sound like a stupid question, but do you have an valid SSL Certificate?

    Scratch the above...You said that you had your own dedicated SSL in you initial post. Sorry.

  7. #7
    Join Date
    Aug 2008
    Posts
    78
    Plugin Contributions
    0

    Default Re: Https not working on admin

    That's a great question- I downloaded the configure.php file to my desktop from the cart, opened it, and the changes are not there. So you're exactly right, DrByte! I'm not sure how to change that to writeable, but I'll find out and make it so. Thanks!!

 

 

Similar Threads

  1. v151 firefox webfont not working in https
    By noyloza in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Feb 2013, 10:37 PM
  2. HTTPS not working
    By Fancyfrills in forum Basic Configuration
    Replies: 20
    Last Post: 11 Aug 2012, 07:42 PM
  3. https not working paypal pro?
    By chrismaddox3d in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 1 Oct 2010, 11:50 PM
  4. Replies: 0
    Last Post: 29 Jul 2007, 12:47 PM
  5. Site not working in https in I.E.
    By dsaini in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 7 Aug 2006, 05:35 AM

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