Joomla Tutorials and Blog Posts

How to Enable SSL HTTPS Only on Certain Joomla Pages

March 28, 2011 | Written by Nick Savov

If you want to enable a secure socket layer (SSL) https encryption only on certain pages or components but not on the rest of the pages or components, it isn't possible in Joomla by default, however with Yireo SSL Redirection, a 3rd party extension, it is. It also has the added benefit that if a user comes in through http rather than https, it will redirect them appropriately and vice versa.

This tutorial will take you step-by-step how to configure SSL https encryption only on certain pages or components.

SSL Certificate

Make sure you have an SSL certificate for your domain as per your host's and the certificate provider's instructions.

Download

tutuploadsmedia_1301350688804.png

Click here to go to the download page directly. Download your respective version.

Install

tutuploadsmedia_1301351012481.png

Go to Extensions >> Extension Manger >> Browse... >> Upload & Install

Note: In Joomla 1.5 it would be Extensions >> Install/Uninstall >> Browse... >> Upload & Install

Configure

tutuploadsmedia_1301351080179.png

Go to Extensions >> Plugin Manger >> System - SSL Redirect

tutuploadsmedia_1301351143382.png

Set it to Enabled.

tutuploadsmedia_1301351259399.png

Select which pages or components you want to be SSL https

tutuploadsmedia_1301352067154.png
  • SSL when Logged-in: Setting this to yes, will ensure that all pages visited by logged in users will be encrypted.
  • Custom SSL-pages: You might on have a menu item for some pages and this area allows you to add custom urls. Use one line per url.
tutuploadsmedia_1301352600665.png
  • Exclude components: Do you want to not have SSL on certain components?
  • Redirect non-SSL to SSL: Almost always should be set to yes.
  • Redirect SSL to non-SSL: Almost always should be set to yes.
  • Redirect Backend to SSL: Preferable yes, since the backend contains the administrative login.
tutuploadsmedia_1301352965014.png

Save and then test the frontend.


 

Comments  

 
#1 Wanda 2011-07-13 23:10
When I tried to attach it to a menu item, it made the padlock disappear from ei. When I took it off the menu item, the padlock reappeared. However, I wanted to add it to some menu items, but I need to have the padlock showing.

Wonderful extension.
 
 
#2 iowawebco 2011-07-14 13:03
Hi Wanda

Is it only IE that's being troublesome? Does it still display the https?

Could we get a link to the page to take a quick look?

Kind regards,
Nick
 
 
#3 Jonh 2011-08-04 18:06
I have made some mistake while configured this usefull plugin, I set:
# Redirect non-SSL to SSL: No
# Redirect SSL to non-SSL: No
# Redirect Backend to SSL: Yes
and after save, I cannot login to my Administrator backend.
Queastion: where I need to change 0 to 1 or 1 to 0 to make it back.
Thanks for response in advance.
 
 
#4 iowawebco 2011-08-04 18:54
Hi Jonh,

Go to your host's phpMyAdmin >> your database >> prefix_plugins >> look for the ssl redirect plugin >> change publish to 0.

Hope that helps! :)

Kind regards,
Nick
 
 
#5 Martin Medina 2011-11-21 15:06
The plugin crashes my site! Then I can't get to the admin tool to change the parameters. My website is safoodbank.org and the admin tool is safoodbank.org/administrator.

Can you help?
 
 
#6 iowawebco 2011-11-21 19:48
Hi Martin,

Give the tutorial at the following link a try: ostraining.com/.../...

Kind regards,
Nick
 
 
#7 Neeraj 2011-12-22 11:50
Please help I have configure SSL for only Shopping pages only and SSL is working fine but when I go form shopping to other normal pages it shows me HTTPS which I do not want.

I want HTTPS only for shopping pages...
 
 
#8 iowawebco 2011-12-22 18:48
Hi Neeraj,

Make sure Redirect non-SSL to SSL and Redirect SSL to non-SSL options are set to Yes in the plugin.

Kind regards,
Nick
 

Add comment