PDA

View Full Version : Can't set Magento after SSL Certification



integratorinaturalionline
06-15-2011, 11:17 AM
Hello!
Im new here. I hope this question helps others that have the same problem. If I try to set Magento to enable the SSL certificate does not accept the new configurations. No other new configuration is saved, it seems stuck.
I need to put all the pages of Magento into HTTPS connection.
Thank you for support. I could not find any solution searching the web.
It may depends of the file htaccess or php.ini.sample?
:p

farcaster
06-15-2011, 11:27 AM
Are you working with purchased SSL certificate, or the free shared one?

integratorinaturalionline
06-15-2011, 11:40 AM
I make the upgrade of Bluehost PRO and the ssl certificate is not free. I hope

ascrivner
06-22-2011, 09:15 AM
I just forced everything over to https in the .htaccess:

# Begin .htaccess
# www.webstoredomain.com with magento installed in public_html/webstoredomain


RewriteEngine on
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php

#Force all traffic to HTTPS
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]

#Begin rules for subdir rewrites
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.WEBSTOREDOMAIN.com/$1/ [R=301,L]

RewriteCond %{http_host} ^WEBSTOREDOMAIN\.com [NC]
RewriteRule ^(.*) http://www.WEBSTOREDOMAIN.com/$1 [R=301,L,NC]

RewriteRule ^$ /WEBSTOREDOMAIN/ [QSA,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule !^(WEBSTOREDOMAIN|...|...|subdirN)(/.*)?$ /WEBSTOREDOMAIN%{REQUEST_URI} [QSA,L]