Support » Installing WordPress » Adding WP to root

  • 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter emarsh

    (@emarsh)

    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.

    Thread Starter emarsh

    (@emarsh)

    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.

    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.

    Thread Starter emarsh

    (@emarsh)

    That might be just the key, apljdi. I’ll check it out.

    Thread Starter emarsh

    (@emarsh)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding WP to root’ is closed to new replies.