In WordPress, the WordPress Address (URL) and Site Address (URL) tell the CMS where the site lives. After you install an SSL certificate, those two values often still start with http://. WordPress will keep building admin links, redirects, and asset URLs on HTTP until you update them.
What does this WordPress change do?
You set both URLs to https://yourdomain.com so core, themes, plugins, and /wp-admin all generate secure links. The reliable way to lock that in is defining WP_HOME and WP_SITEURL inside wp-config.php.
When should you do this in WordPress?
After HTTPS works at the server or load balancer (certificate installed and reachable), but before you treat the site as production-ready for SEO. Ideal moments: first SSL install, Bitnami/EC2 cutover, or migrating a local HTTP site to a live HTTPS domain.
What you will configure in WordPress
The WP_HOME and WP_SITEURL constants (or the matching fields under Settings » General), then a quick check that the dashboard fields show HTTPS and the public site shows a padlock.
WordPress Address vs Site Address
On a standard single-site install both point to the same HTTPS homepage. Change them together. Only split them for advanced layouts (for example WordPress files in a subdirectory while the public site is the domain root).
SSL is not enough by itself.
A certificate enables HTTPS on the server. WordPress still reads the stored site URLs. Update those URLs (or pin them in wp-config.php) or the CMS keeps emitting http:// links.
Backup first.
Copy wp-config.php (and ideally a database backup) before you edit. A typo in these constants can lock you out of /wp-admin until you restore the file over SFTP.
Pinning locks Settings » General.
When WP_HOME and WP_SITEURL are defined in wp-config.php, the WordPress Address and Site Address fields become read-only in the dashboard. That prevents accidental HTTP rollbacks from the admin UI.
Reference
Core WordPress Concepts
Terms you will use while switching a WordPress site to HTTPS:
Concept
Meaning in WordPress
WordPress Address (URL)
Where WordPress core files live — stored as siteurl / WP_SITEURL
Site Address (URL)
Public front-end URL visitors use — stored as home / WP_HOME
wp-config.php
Root config file; can override URL options and lock them
WP_HOME
Constant that forces Site Address (URL)
WP_SITEURL
Constant that forces WordPress Address (URL)
Settings » General
Dashboard screen that shows both URL fields
Mixed content
HTTPS page still loading HTTP images, CSS, or scripts
301 redirect
Server rule that sends old HTTP requests to HTTPS permanently
Before you start
Prerequisites
Have these ready before you edit WordPress URLs:
A working SSL/TLS certificate for your domain so https://yourdomain.com already loads (even if WordPress still redirects or shows mixed content).
SFTP or File Manager access to the WordPress root so you can download, edit, and re-upload wp-config.php (FileZilla works on Bitnami EC2 and most shared hosts).
A backup of wp-config.php (and preferably the database) before you change anything.
WordPress admin access to confirm Settings » General after the upload.
Walkthrough
Examples
Locate wp-config.php, flip WP_HOME and WP_SITEURL to HTTPS, upload the file, then verify the WordPress dashboard and the public padlock.
Example 1 — Locate wp-config.php in the WordPress Root
Connect with FileZilla (or your host File Manager) and open the WordPress root—the folder that also contains wp-content, wp-admin, and wp-includes.
Connect over SFTP to your host or EC2 instance.
Browse to the WordPress root. On Bitnami this is often /bitnami/wordpress/ or /opt/bitnami/wordpress/.
Download wp-config.php and keep a second copy named something like wp-config.php.bak.
WordPress root
/bitnami/wordpress/wp-config.php
/opt/bitnami/wordpress/wp-config.php
# Shared hosting: public_html/wp-config.php (next to wp-content)
How It Works
Root, not wp-content. Editing a file inside a theme will not change WordPress Address URLs.
Bitnami paths vary by image version; if one path is missing, list the parent and look for wp-config.php.
Backup first so you can restore over SFTP if admin login breaks.
Same flow on shared hosts—only the absolute path changes.
Example 2 — Before vs After in WordPress Config
This is the only scheme change WordPress needs in these two constants:
Open the downloaded wp-config.php in VS Code, Notepad++, or any plain-text editor and find the existing define() lines (or add them above the “That’s all, stop editing!” comment).
How It Works
Scheme only. Keep the same hostname and trailing slash style you already use.
Both constants. Updating one URL and leaving the other on HTTP causes redirect and admin oddities.
Dynamic host is fine. Many Bitnami stacks build the URL from $_SERVER['HTTP_HOST']—you still change http:// to https://.
Hard-coded domains work too.define( 'WP_HOME', 'https://example.com' ); is equally valid.
Example 3 — Edit WP_HOME and WP_SITEURL
Replace the HTTP scheme with HTTPS in both WordPress constants, save, and upload the file back to the same path (overwrite).
WordPress Address (URL): https://yourdomain.com
Site Address (URL): https://yourdomain.com
(Both overridden by wp-config.php)
How It Works
WP_HOME becomes the Site Address visitors hit.
WP_SITEURL becomes the WordPress Address for core and admin assets.
Constants win over the home and siteurl rows in the database.
Re-upload to the same path so PHP loads the new file on the next request.
Example 4 — Verify in WordPress Admin (Settings » General)
Log in at https://yourdomain.com/wp-admin and open Settings » General.
Confirm WordPress Address (URL) starts with https://.
Confirm Site Address (URL) starts with https://.
Expect both fields to be read-only when the values are pinned in wp-config.php.
Settings » General
WordPress Address (URL): https://yourdomain.com (defined in wp-config.php)
Site Address (URL): https://yourdomain.com (defined in wp-config.php)
WordPress admin
WordPress verification checklist
1. Open https://yourdomain.com/wp-admin
2. Go to Settings » General
3. Both URL fields show https://
4. Fields are greyed out / read-only (if pinned in wp-config.php)
5. Save is unnecessary — constants already apply
How It Works
Dashboard mirrors the constants so you can confirm without opening the database.
Read-only fields mean WordPress is no longer writing these options from the UI.
If fields still show HTTP, the wrong file was uploaded or a cache (opcode / page cache) is serving an old config.
Clear caching plugins after the cutover so front-end pages rebuild with HTTPS URLs.
Example 5 — Public Site Padlock and Mixed Content
Finish with a front-end check so WordPress visitors get a clean HTTPS experience.
Open https://yourdomain.com in a private/incognito window.
Confirm the browser lock icon (secure connection).
Open DevTools → Console and look for mixed-content warnings (HTTP images, CSS, or scripts).
Fix hard-coded http:// URLs in content, widgets, or the Customizer; then add a server-level 301 from HTTP to HTTPS.
Browser
How It Works
Padlock means TLS is working and the page itself is HTTPS.
Mixed content is often old media URLs still stored as http:// in the WordPress database.
301 at the server upgrades typed or bookmarked HTTP links so WordPress is not the only layer enforcing HTTPS.
Next SEO step: add the HTTPS property in Google Search Console and resubmit the sitemap.
Edge Cases & Pitfalls
Most WordPress HTTPS failures come from partial URL updates, caches, or hard-coded HTTP assets.
partial
Only one constant updated
Changing WP_HOME but not WP_SITEURL (or the reverse) breaks admin redirects. Always update both WordPress URL constants together.
ssl
Certificate not live yet
If HTTPS does not load at the server first, pinning HTTPS URLs in WordPress can make the site unreachable. Confirm TLS before editing wp-config.php.
cache
Page cache still serves HTTP
Plugins like WP Super Cache, LiteSpeed Cache, or a CDN may keep old HTML. Purge caches after the URL change.
mixed
Mixed content in posts and media
WordPress may generate new links as HTTPS while old post content still embeds http:// images. Search-replace carefully or use a trusted migration tool.
redirect
No server 301 from HTTP
Without a web-server or load-balancer redirect, visitors can still open the HTTP version. Add a permanent redirect so WordPress and SEO share one canonical scheme.
lockout
Typo locks you out of wp-admin
A missing quote or wrong domain in wp-config.php can break login. Restore the backup over SFTP, then edit again.
Remember
Key Takeaways
SSL ≠ WordPress URLs. Install the certificate, then update WordPress Address and Site Address.
Pin both constants: set WP_HOME and WP_SITEURL to https:// in wp-config.php.
Confirm in Settings » General, then check the public padlock and mixed content.
Next: 301 HTTP→HTTPS at the server and submit the HTTPS site to Search Console.
One line: SSL live → set WP_HOME + WP_SITEURL to HTTPS in wp-config.php → verify Settings » General and the padlock.
Frequently Asked Questions
An SSL certificate secures the server connection. WordPress still stores WordPress Address (URL) and Site Address (URL) in the database (or in wp-config.php). Until those values use https://, WordPress keeps generating http:// links for admin, themes, and media.
WordPress Address (URL) is where core files live (WP_SITEURL). Site Address (URL) is the public front-end URL visitors use (WP_HOME). On a normal single-site install both are the same HTTPS domain. They diverge only for advanced setups such as WordPress in a subdirectory.
It sits in the WordPress root next to wp-content, wp-admin, and wp-includes. On Bitnami EC2 it is often /bitnami/wordpress/wp-config.php or /opt/bitnami/wordpress/wp-config.php. On shared hosts (GoDaddy, Bluehost, HostGator) open the same root folder in File Manager or SFTP.
Either works if the fields are editable. Defining WP_HOME and WP_SITEURL in wp-config.php overrides the database values and locks the Settings » General fields so they cannot be changed from the dashboard—useful after a permanent HTTPS cutover.
Yes. HTTPS is a ranking signal and browsers mark HTTP as not secure. Also add a server-level 301 from HTTP to HTTPS, fix mixed-content assets, and submit the HTTPS property and sitemap in Google Search Console.
WordPress can redirect oddly, break wp-admin, or load the theme over the wrong scheme. Always change both constants (or both Settings fields) together, then clear any page cache.