How to Enable SSL on magento?

Now a days SSL certificate is an very most importanct to upgrade the online shop website. Mostly E-commerce site , SSL setup is important now a days.SSL will helpful to secure the customer sensitive information.It will communicate between browser and server to ensure the customer sensitive information pass with https connection.It will helpful to trust your website. Below way we can enable SSL in magento,

After installed SSL on your magento website, go admin and make activate SSL as like below

1. Go to Admin – System – Configuration – General (Left side tab) – Web
2. Open secure tab
3. Use Secure URLs in Frontend – Enable YES (If you enable this option, then SSL will enable for magento frontend)
4. Use Secure URLs in Admin – Enable YES (If you enable this option, then SSL will enable for magento admin)
5. Check Offloader header – SSL_OFFLOADED

Once you activate the SSL, you can check https will append on your website URL. In case if you getting any issue then check DB level

1. Select core_config_data table
2. Run below query
3. Select * from core_config_data where path like ‘%web/secure/base_url%’;
4. Check value column – is http or https ? If its https then admin setup is done.
5. Incase after setup everthing is done, seems not working your website then SSL setup may wrong. Need to check SSL installation setup.

URL Change:

After Successfull installation and setup of SSL, we may face some issue from AJAX call or 3rd party URL calling from our website. For that we have to follow below setup

Ajax Call:
Normally when we write a code on development stage we may miss some HTTPS url configuration setup for our ajax call. In that scenario we might get some issue when triggering http call on https website. Resolving that issue we use below changes.Change your ajax call URL as like below

echo Mage::getUrl(‘MYMODULE/MYCONTROLLER/MYACTION’, array(‘_secure’ => Mage::app()->getStore()->isCurrentlySecure()));

3rd Party URL change:
In case if you are using any 3rd party website call from your website, like google analytics call or etc… the url should be
//www.SAMPLEURL.com not like http://www.SAMPLEURL.com

 

———————————————————————————————————————————————————————————————-

Corner of Blog:

“Save the Earth for future birth”

———————————————————————————————————————————————————————————————-

Leave a Reply