You can enable HTTPS on a single WordPress page without forcing the whole site by making sure the page is served over a valid SSL certificate, then adding a page-specific redirect or filter that sends only that page's URL to its HTTPS version while leaving every other URL on HTTP. The cleanest way is a small code snippet that checks the current page ID and redirects just that page, plus a mixed-content cleanup so the page's images, scripts and styles all load over HTTPS. You need a working SSL certificate on the domain first, because HTTPS on one page still depends on the server presenting a valid certificate for the whole domain.

What You'll Need

  • A valid SSL certificate installed and active on your domain (most hosts offer free certificates through their control panel; confirm the padlock shows on any URL before you start).
  • Administrator access to the WordPress dashboard.
  • Access to your theme's functions.php file, or a small custom plugin, so you can add a snippet safely.
  • A way to edit .htaccess if your host uses Apache, or access to server-level redirect rules if it uses Nginx.
  • A backup of the site (files and database) before changing redirects or theme code.

Step-by-Step

  1. Confirm the certificate works. Visit your domain with https:// in front of it and check that the browser shows a padlock without a warning. If it does not, install or activate the certificate through your host's control panel first. Everything below depends on this.
  2. Find the page ID. In the WordPress dashboard, open Pages and hover over the page you want to secure. The ID appears in the link as post=123. Write that number down. If you use a page builder, the ID is still the WordPress page ID, not the builder's template ID.
  3. Add a page-specific HTTPS redirect. Open your child theme's functions.php (or a small custom plugin) and add a snippet that runs early, checks is_page( 123 ) and whether $_SERVER['HTTPS'] is empty, then redirects to the same request URI with https://. Replace 123 with your page ID. This sends only that page to HTTPS and leaves the rest of the site on HTTP.
  4. Flush permalinks. Go to Settings > Permalinks and click Save Changes without altering anything. This refreshes WordPress rewrite rules so the new redirect logic is picked up cleanly.
  5. Test the page. Open the page over HTTP in a private window. It should land on the HTTPS version. Then open two or three other pages over HTTP and confirm they stay on HTTP, which proves the redirect is scoped to one page.
  6. Fix mixed content on that page. Open the secured page, right-click and choose Inspect, then check the Console for warnings about insecure content. Any image, script or stylesheet loaded over http:// will trigger browser warnings and can break the padlock. Update those URLs in the page content, widgets or theme settings to https://.
  7. Check internal links. If the page links to other pages on your site, those links can stay HTTP, but if they point back to the secured page, change them to HTTPS so visitors do not bounce back to the insecure version.
  8. Consider a canonical tag. If search engines might index both versions, add a canonical link pointing to the HTTPS URL for that page only, so the two versions are not treated as duplicate content.

Common Mistakes

  • Redirecting the whole site by accident. A rule that checks only for a missing HTTPS and does not test the page ID will loop or force every URL to HTTPS. Always scope the condition to the page.
  • Adding the snippet to a parent theme. Theme updates overwrite it. Use a child theme or a custom plugin.
  • Forgetting mixed content. The page can be on HTTPS while still loading HTTP images, which shows a warning and can break the padlock.
  • Testing while logged in with a cache plugin active. Cached pages can hide the redirect. Clear the cache and test in a private window.
  • Assuming the certificate covers only one page. Certificates cover the domain, not individual pages, so the certificate itself is not the limiting factor.

Tips

  • Keep a list of the page IDs you secure. If you add more pages later, you can extend the same snippet with an array of IDs.
  • Use a private window for every test so browser caching and logged-in cookies do not confuse the result.
  • If you use a security plugin that manages HTTPS, check its settings first; some plugins have a per-page HTTPS option that avoids custom code.
  • After the page is stable, review analytics and search console for crawl errors on that URL, since the redirect changes the canonical address.

Troubleshooting

If the page redirects in a loop, the snippet is probably matching the HTTPS version too. Confirm the condition checks that HTTPS is missing before redirecting, and that the redirect target is the same path with https:// only. If the padlock still shows a warning, open the browser console and look for insecure requests; fix each URL. If the redirect does not fire at all, clear the site cache, your browser cache and any server-level cache, then re-save permalinks. If other pages unexpectedly switch to HTTPS, a server rule or plugin is overriding your snippet; check .htaccess and the HTTPS settings in your security or caching plugin. If the certificate shows as invalid on the HTTPS version, the certificate is not installed correctly for the domain and no redirect will fix that; resolve it with your host first. Finally, if you cannot edit theme files safely, install a small custom plugin instead and paste the snippet there, so a theme update cannot remove it.

Frequently Asked Questions

Can I use HTTPS on one page without a certificate for the whole domain?

No. The certificate is issued for the domain, so the server must present a valid certificate for that domain before any page can load securely. The page-level part is the redirect that sends only that page to HTTPS.

Will this break the rest of my site?

No, if the redirect is scoped to the page ID. Other pages stay on HTTP. Test a few other URLs after the change to confirm.

Do I need to change the site URL in Settings > General?

No. Changing the site URL forces the whole site to HTTPS. Leave it on HTTP and use the page-specific redirect instead.

Why does the padlock show a warning even though the page is on HTTPS?

Mixed content. At least one image, script or stylesheet is still loading over HTTP. Update those URLs to HTTPS and reload.

Can a plugin do this instead of code?

Some security and HTTPS plugins offer per-page or per-URL HTTPS rules. Check your plugin's settings before adding custom code, and confirm the rule applies only to the page you want.

Does this affect SEO?

It can, because the page now has two addresses. Add a canonical tag pointing to the HTTPS version and keep internal links consistent so search engines treat it as one page.