WordPress stores the site URL as a hardcoded, absolute path inside the database. Because of this, when a site is migrated to a URL that doesn't match the value in the database the site will not work. To fix this, change the values of both siteurl
(option_id = 1) and ‘home’ (option_id = 2) to the correct (hardcoded) URL in the wp_options table. Do not attempt to change the values to relative paths anywhere in the database. While this may sound smart and save time – it may result in compatibility issues with plugins or themes (which also save absolute records).
Last modified | Friday, January 29, 2021, 8:41:53 AM UTC |
Last author | Glenn de Haan |
Commit ID | 8c81eec |