• I have a few pages on my website with Stripe Checkout.I want these pages to be under HTTPS. The rest I want to remain on HTTP.

    I’ve installed an SSL cert on my website and it can be accessed now through http or https.

    you can see here:

    http://paulmilano.com or https://paulmilano.com

    How can I force https on only a few pages of my site and how can I fix the formatting in https mode?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    Take a look at the source code of this plugin and see if it points you in the right direction:
    https://wordpress.org/plugins/wordpress-https/

    I don’t recommended using this plugin because it has not been updated for over 2-years.

    Is there any reason why you’d want some only some pages https? If you’ve gone to the trouble of installing an SSL certificate then you could use it site-wide, even if some of the pages don’t contain secure data.

    Then it would simply be a matter of changing the site URL in Settings> General

    Thread Starter pmilano48

    (@pmilano48)

    Hey justlooken.

    I dont mind doing that but two things then.

    1.) Why does the HTTPS screw up the formatting of my site?
    2.) I would still want people to be able to access just by going to http://www.paulmilano.com without specifically typing in the https

    it appears to be breaking the link to some of your stylesheets.

    It may be that swapping the site URL to the https address may correct that, but as this depends on how the theme will process the changes I can’t guarantee it (you can always switch it back if it doesn’t work).

    You also may need to re-log into the WordPress admin after you change the URL

    Thread Starter pmilano48

    (@pmilano48)

    Thanks.

    Last Question if I change the settings do I need to do any DNS entry to ensure people can still access the site by going the non https link?

    You don’t need to do anything with DNS as http and https are transport protocols.

    When you set a base URL in the settings, WordPress will set navigation links and file paths to the new address, meaning that anyone who types in the http address will arrive on the page without being on a secure page but then as they navigate to other pages they should be pushed onto the secure version.

    Links and images you place in the page through the editor will remain as http though, so it’s not a bad idea to change them, which can be done manually or (if you’re comfortable with directly editing the database through phpMyAdmin) you can search and replace all.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add HTTPS to one specific page’ is closed to new replies.