How to Install a SSL Certificate HTTPS on MODx

How to Install a SSL Certificate HTTPS on MODx

Knowing how to install a SSL Certificate HTTPS on MODx and enable your entire site to be accessed via HTTP or HTTPS is quite advantageous as this will allow you to make the transition easier. Since there are some parts or elements in your SSL-based website that are not yet accessible via HTTPS, it is important to be able to enable your site to be accessed either way. This will allow you to have your website accessed without any problems.

Godaddy is a great option for reliable, cheap SSL certs.  Get the best price.

Installing SSL Certificate on MODx

Installing your GoDaddy or Symantec SSL Certificate on MODx is fairly simple. Enabling your MODx site to be accessed via the secured protocol or not is also not that hard. Just follow the guidelines below:

  • Installing your SSL Certificate

To install your certificate on MODx, you just need to download your cert file, upload it on your server and force secure connections. Uploading the file is not really hard, you just need to create a directory where you need to upload the files and then activate the certificate.

You will need to do some coding in here but it is not really that hard since samples are already provided. You just need to edit some details.

  • Forcing Secure Connections

After you have successfully uploaded your certificate on your server, you need to force the connections so that they will be secure. This means that your links should be accessed via HTTPS. And to do that, add the code below to your .htaccess file.

RewriteEngine On

RewriteBase /

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$$1

That will actually force the SSL Certificate to be used on your connections, which will keep your links secured. You can check if that is working by visiting your site: Make sure that you edit that into your own domain name.

The URL should change to automatically.

  • Setting the URL access before the SSL Certificate installation and activation.

If you are planning on converting your website into an SSL-based one, you might want to have your URLs accessed both via HTTP and HTTPS. This way, there will be no problems when you have accessed a link on your MODx site that it is not yet HTTPS secured.

To do this, add this code:

<link rel=”shortcut icon” type=”image/x-icon”

href=”//” />

As you can see, the protocol is gone. Instead of the HTTP or HTTPS protocol, the link only begins with ‘//’. This means that any protocol will be honored, which will make the transition easier when you finally need your URLs to be accessed via HTTPS.

When trying to make your MODx website certificate compatible, you may need to make a few tweaks on your files. This is important if you are getting resources from unprotected sources. If your images are what are causing the issue with accessing your link thru HTTPS, it would be best to convert it to HTTPS so that you won’t receive any warnings. It would help to get elements only from SSL-based sources as well to prevent these problems from arising.

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: