How to force specific pages from http to https

| Last Updated: | In: WordPress, WordPress Beginners, WP Labs


In this tutorial you will know How to force specific pages to be secure, ssl, https. This is very simple & easy snippet to use in your current WordPress website.

It very easy code, you can change this code as per your requirement. Open your functions.php file from your current active wordpress theme.

http-to-https

Add Filter

Below filter will force to redirect your web url from http to https.

Add below snippet in your theme’s functions.php file.

Tags: , , , ,


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.


You may also like:

Follow us!

Get Free Access of 380+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...

SEARCH NOW