URL & Database
-
I had to tweak WordPress to make it function on a website for three different people. In the process, I changed my mind several times. That is, the location of WordPress “unfortunately” changed.
When that happens, most of the links break because they use the siteurl and/or home options that define a URL that is now totally broken.
It is probably okay for the main site, but even the wp-admin part does not work properly once you have moved your site. You end up having to change the siteurl and home URLs by hand with an UPDATE SQL command.
UPDATE wp_options SET option_value = ‘https://url…’ WHERE option_name IN (‘siteurl’, ‘home’);
(assuming that both the siteurl and home are the same.)
I’m not so sure that you absolutely need to have such a URL. And if so, why not generate it dynamically from the server info? (and yes, there are broken servers, so what?!) Also, most of the time, you do not need to have a full URL since just index.php?<blah> would work.
Thank you.
Alexis
- The topic ‘URL & Database’ is closed to new replies.