emarsh
Member
Posted 3 months ago #
I have WP working on a subdirectory, with a normal static HTML page at root. I have decided to use WP on the root as well, with the blog in a tab from the main site. I want to keep my blog in the subdirectory, and keep all links, etc., in the same place, but share themes and whatnot with the main site. What is the best way to do this? Install another WP at root? Reinstall (I don't want to do this)?
erikmarshall.net
erikmarshall.net/blog
emarsh
Member
Posted 3 months ago #
I saw that before, but I'm still not sure what to do. Should I move the entire thing into root? If so, how do I get the blog to show up at /blog without reinstalling everything? Or should I simply change the Blog Address to root? If so, same question.
emarsh
Member
Posted 3 months ago #
Maybe I should clarify. I want the blog at erikmarshall.net/blog to remain exactly the same - all the permalinks, entries, everything the same. I want to add WP to the root directory and have the /blog as a tab or link within the root. I am looking for the simplest way to do this.
apljdi
Member
Posted 3 months ago #
You can actually include WP files in your code and use WP functions outside of the WP install directory. See this, for example. That might do what you need.
emarsh
Member
Posted 3 months ago #
That might be just the key, apljdi. I'll check it out.
emarsh
Member
Posted 2 months ago #
I ended up moving the files to the root, changing the settings accordingly, and then making a page for the blog and one for the main page, pointing "posts" to the blog page, to keep the same subdir. It is that last part that is missing from the tutorial.