- Newest
- Most votes
- Most comments
To change the WordPress Address (URL) and Site Address (URL) to HTTPS, you can try the following steps:
Log into the WordPress Dashboard. Go to Settings > General. Change the WordPress Address (URL) and Site Address (URL) to the HTTPS version of your domain name. Click the Save Changes button. If the above steps don't work, try disabling all the plugins and switching to a default theme (e.g. Twenty Twenty-One). Then repeat the steps 1-4.
If you still can't change the URLs, you can try editing the wp-config.php file directly on your server using an FTP client like FileZilla.
Connect to your server using FileZilla. Navigate to the root directory of your WordPress installation. Open the wp-config.php file. Add the following code just above the line that says ‘That’s all, stop editing! Happy publishing’: define('WP_HOME','https://example.com'); define('WP_SITEURL','https://example.com');
Save the file and close it. Try accessing the WordPress site again. It's important to backup your site and database before making any changes to the wp-config.php file.
I would like to add my experience which appears similiar to like this problem.
- I have installed the WordPress, but still I did not open the website either by IP address or by domain name.
- I have configured the SSL/TLS of both FQDN and CNAME before open the website.
- It worked both by AWS Certificate Manager or Let's encrypt (separately).
- Now open the website either by FQDN or by IP address.
- Go to the FQDN/wp-admin and open the WordPress.
- Now if you close the WordPress and reopen the page - it will take you to the https, instead of http either or WordPress site or FQDN site.
Please configure the SSL/TLS before you open the WordPress either by IP address or FQDN.
Relevant content
- asked 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago