I have done asper directed by my webhost manager. following the instructions of this website: Use Cloudflare’s SSL certificate on your site. And did the folloing instructions from the website:
1 Under the SSL/TLS menu, enable one of Cloudflare’s SSL options.
1 Wait for the changes to be available on your site.
2 Install and activate the Cloudflare plugin.
3 Install the Cloudflare Flexible SSL plugin to avoid running into Redirect loop issues in your dashboard.
6 In your Cloudflare settings, create a Page Rule to redirect all traffic from HTTP to HTTPS.
I have miss step number 4 and 5 according to the instructions on page:
Use Cloudflare’s SSL certificate on your site.
Because I have no idea where this code suppose to go. Either on Cloudflare or my webhost?
Please help!
This is the code:
Step 4: Enable Administration over SSL (reference) by adding the following to wp-config.php
1
2
3
4
/**
* Admin over SSL
*/
define('FORCE_SSL_ADMIN', true);
...
Step 5: Set the port to 443 by adding the following to wp-config.php:
...
1
2
3
4
/**
* Set port to 443
*/
$_SERVER[‘SERVER_PORT’] = 443;