I got someone to help me with my .htaccess file because I was getting security warnings or an open index when someone would type in http://mysite.com and similar.
This was added to my htaccess:
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://secure.mysite.com/ [R]
I had some serious problems with even getting SSL on my site because I used a free SSL cert (DV class 1 from StartCom) that apparently does things a little weird. (That is what my hosting company said anyhow, but I don't know if that is relevant).
I had followed one guide that says in order to be PCI compliant you need to change the HTTP_SERVER line in configure.php to your https address. This was before doing any changes to the htaccess file, and my admin pages after logging in would still end up going to http...
Now, after doing the htaccess changes my shop appears to work fine and stay in https, the login and first admin page work fine and are in https, but when I try to do anything in the admin I get redirected to my shop's main page.
We had tried doing the htaccess a different way at first and only later realized that I was putting the htaccess in the wrong folder... so the only thing I can think of now would be to go try that method.. but it seemed like my Zen Cart setup was wrong int he first place. This is what my /admin/includes/configure.php file looks like now and the /includes/configure.php is similar
define('HTTP_SERVER', 'https://secure.mysite.com');
define('HTTPS_SERVER', 'https://secure.mysite.com');
define('HTTP_CATALOG_SERVER', 'https://secure.mysite.com');
define('HTTPS_CATALOG_SERVER', 'https://secure.mysite.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');
Maybe I could add those three lines above to the different htaccess in the admin folder too..
Thanks all for help =)


Reply With Quote

