Guest Posted September 14, 2005 Posted September 14, 2005 I have my site protected by a SSL certificate but my admin page showed as unlocked. I had my hosting company change the page to be under https:// but now when I click on a link it goes to http: and I have to add a "s" to every http address to see the page. It seems to me that the people at my hosting company did not install the redirect for the full folder. I am new at this and was wondering if anyone can suggest a fix?
♥Vger Posted September 14, 2005 Posted September 14, 2005 define('HTTP_SERVER', 'https://www.yourdomain.com'); define('HTTP_CATALOG_SERVER', 'https://www.yourdomain.com'); in admin/includes/configure.php Vger
baggers Posted September 14, 2005 Posted September 14, 2005 How do I enable https ssl in the admin section. In the file 'admin/includes/configure.php ' it only allows you to change the admin location under the normal ssl website.
♥Vger Posted September 14, 2005 Posted September 14, 2005 Well, you first have to have access to either a shared or full ssl certificate - you can't just 'enable_ssl' if you don't have it. If you have a full ssl cert then follow the lead given above and also enter 'https://www.yourdomain.com' for the https_server address, and set enable ssl to true If you have a shared ssl cert from your hosting provider and you know the pathway of it then edit the file using the shared ssl address instead of the full ssl address. Vger
baggers Posted September 14, 2005 Posted September 14, 2005 I have a full ssl certificate. I have the ssl set to true but this only applies to the store, not the admin section. This is the line in the above file that determines where the section is define('DIR_WS_ADMIN', '/admin/'); // absolute path required Do I have to add extra lines to allow the admin to work under the ssl? Ie. These are the lines for the storefront define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com'); define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com'); define('ENABLE_SSL_CATALOG', 'true'); Do I have to add these lines in for the admin? define('HTTP_ADMIN_SERVER', 'http://www.yourdomain.com/admin/'); define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com/admin/'); define('ENABLE_SSL_CATALOG', 'true'); Paul
♥Vger Posted September 14, 2005 Posted September 14, 2005 You have TWO configure.php files, one in includes/configure.php (for the shop front) and one in admin/includes/configure.php (just for admin and nothing to do with shop front). This is something like your admin/includes/configure.php file would look like (for a ful ssl cert and an install in the root fo your web - no 'catalog' folder): define('HTTP_SERVER', 'http://www.yourdomain.com'); define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com'); define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/var/www/html/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/var/www/html/'); You have to replace /var/www/html/ with the path to the root of your website (different on different servers). Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.