siteurl & home options
As I was installing WordPress, it worked in less than 5 minutes as promised.
When I then renamed and moved the folder, it broke in less than 1 minute.
When you move the folders, in other words, when you change the URL, the system breaks. This is because in many places you use the siteurl and home options from the database. Whenever you move the WordPress code, you need to edit the database and fix the URL in there too.
In itself, it is easy, but rather annoying. It seems to me that the wp-admin pages should not be affected by such a move. At least those pages that are required to fix the URLs mentioned. Then you could use the wp-admin to do the database update (much easier than doing an SQL UPDATE… but I know I’m complaining too much here…)
Anyway, if you have that problem, you need to run this command:
UPDATE wp_options SET option_value = ‘http://…’ WHERE option_name IN (‘siteurl’, ‘home’);
Then go edit the home URL if you want a different one.
It seems to me that the URL should not be necessary because it should always be available dynamically at run time. But I suppose that you have done this because you had the opposite problem…
This was certainly the most annoying part as I was tweaking WordPress.
- The topic ‘siteurl & home options’ is closed to new replies.