I have finally moved this wordpress wiki into the davelevy.info domain from its historic site at wiki.davelevy.info; it’s now at ./wiki to be precise. Here’s how I did it. …
How to move a wordpress site from a sub domain to domain hosted folder name.
- Use
cd ../oldwiki; find . | cpio -pvdum ../next/wiki
to move the old instance to the new location - Change the settings page
- Amend the redirects file,
Redirect 301 / https://davelevy.info/wiki/
- I examined and amended my version of header.php which had hardcoded locations to implement the button menu at the top of the page.
- I installed really simple sssl, to deal with the hardcoded images at http and reinstalled the header image, the former may have been overkill.
- I then wrote some SQL, which I ran against the blog posts table to replace the content enclosed old URLs. I used the SQL REPLACE function.
This was piss easy, why has it taken me so long?
See also: