1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
I think it is possible to change this by directly changing the following settings in "wp-config.php" or by directly rewriting the database table used by WordPress.
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');
For example, if you change the following, the site address will be changed to "https://example.com".
define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');
If you want to be able to change it from the WordPress admin screen, you can do so by deleting the site address setting itself from "wp-config.php".
I think you can change it from the management screen if you change it to a comment as shown below.
# define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
# define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');
https://wordpress.org/documentation/article/changing-the-site-url/
Relevant content
- asked 3 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago