Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL cert installed but admin still shows "not protected"


mwo

Recommended Posts

Posted

HI. I have installed a full SSL cert and it looks like it is working fine on my site. My admin section however, still shows "not protected by a secure SSL cert". Why would this be?

 

Any help gratefully appreciated, mwo.

Posted

Honestly, I've followed most every "contribution" to the SSL and Admin module on the forum, and still have not found a solution.

 

I just protected the "admin" directory for now, until i find something that works.

 

Good Luck, SG

Posted
Honestly, I've followed most every "contribution" to the SSL and Admin module on the forum, and still have not found a solution.

 

I got tired of looking at the forums and I search the web for a solution.

I think I found it at:

 

http://www.cse.unsw.edu.au/faq/questions/www-htaccess.html

 

I added this lines into the .htaccess file and works for me.

 

<IfModule mod_ssl.c>

SSLRequireSSL

</IfModule>

<IfModule !mod_ssl.c>

# no non-ssl access

Redirect permanent / https://localhost/

</IfModule>

 

That code is forcing to use ssl and also is redirecting in the case somebody types http.

Posted

You know, it probably makes your admin section a little more secure if you don't let it redirect you to ssl if you type in the non-ssl url.

 

And also, as I understand it, I don't think you have the entire admin section under ssl, just the entry page, even with the redirect? FWIW, I recommend in your admin/includes/configure.php, setting HTTP_SERVER to your secure site. Like this:

 

define('HTTP_SERVER', 'https://secure.yoursite.com');

 

It secures your entire admin section.

Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums.

 

Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums

 

Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...