Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-01-27 18:54:13

marios2
Member
From: Germany
Registered: 2019-07-31
Posts: 76

changing to ssl over https

What are the necessary steps to switch my localhost development site to https?
(htaccess and so on)
I am using MAMP PRO which lets me use a self issued certificate.

Also, are there any different steps, to follow on the live site?

Thanks in advance, regards marios.

Offline

#2 2021-01-27 19:42:50

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
Website

Re: changing to ssl over https

I’ve not used the most recent version of MAMP Pro but with the previous version, you still had to okay the self-signed certificate in your browser.*

But otherwise, all you need is the following line in your config.php:

define('PROTOCOL', 'https://');

That will cause internal txp-generated links to be created with https://.

You can – but don’t have to – redirect http: to https: in your htaccess (See HTML5 Boilerplate for an example).

If you’re accessing third-party libraries (js/css/images), also check you use https: in your src attribute.

For your online site, you just need to set up your certificate with your host and the same applies.

*Note too that if you happen to use certain file-related php functions, you may find, you need to do the same.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2021-01-27 22:04:34

marios2
Member
From: Germany
Registered: 2019-07-31
Posts: 76

Re: changing to ssl over https

ok, thanks a lot.

rgrds, marios

Offline

Board footer

Powered by FluxBB