Moderator
t-p
(@t-p)
Thanks.
Yes, I did read it – after I’d originally changed the url in the dashboard – and since trying the edit wp.config and functions suggestions things are now worse… can’t log-in, and the site is minus the css (although the source shows a location of /old).
UPDATE: I was reluctant to get into the db, but having done so and edited accordingly things are now working again at the previous url.
FURTHER UPDATE: This is here in the hope it may help someone else who gets a problem, because I’m not sure the codex is sufficiently clear, and the page mentioned above seems to contradict another at http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory.
I’ve frequently changed the ‘public url’ of my installs by editing the ‘Site Address’ in ‘general settings’. If it’s then publishing into a directory, I then create that directory and copy into it the old index.php and .htaccess files and appropriately edit them to show the correct paths. I then remove those older index.php and .htaccess files from the root/whatever other folder it was publishing into. Things then work as they should – available at the new location and not at the old.
My error this time was to forget to create the new folder and add the files and then remove the old ones as explained above.
If this isn’t the correct way to do it, I’m happy to be told just how it should be done.