WordPress.org

Ready to get started?Download WordPress

Forums

Using WP as a CMS: Changing the directory structure to put everything in root (8 posts)

  1. grnidone
    Member
    Posted 8 years ago #

    I am using wordpress as a CMS to create a user friendly site that non techies can easily change as they need to.

    Most of the site is going to be made as WordPress "Pages" which will reside outside of the blog. There is one directory that will be an actual blog.

    Currently, the "Pages" reside under the blog in the directory structure:

    http://www.blat.com/blog/Page-1
    http://www.blat.com/blog/Page-2
    http://www.blat.com/blog/Index-Page

    What I want is:
    http://www.blat.com/Page-1
    http://www.blat.com/Page-2
    http://www.blat.com/Index-Page
    http://www.blat.com/blog

    Basically, I want everything to appear as though it is in the root directory, and I want the home page to look as a static page not as a 'rolling' blog.

    All of this needs to be edited using the wordpress admin panel. The people who will be editing this in the future basically barely know how to use a mouse, so I don't want to confuse them with broken admin links.

  2. ladydelaluna
    Member
    Posted 8 years ago #

    what you need to do is put the wordpress files in the root directory - and then the "blog" would be written as posts with categories, the "pages" would be written as pages, and then you can create a static home page by taking "index.php" and saving a copy up as "home.php" (don't remove index.php) but replacing everything in the content div with your static content.

  3. grnidone
    Member
    Posted 8 years ago #

    That is how I have it now, but most of the pages are in the directory structure under /blog.

    So the pages are:
    http://www.blat.com/blog/Page-1

    What I want is
    http://www.blat.com/Page-1

    added: I'm using the Filosofo Home-Page Control plugin found here:
    http://www.ilfilosofo.com/blog/home-page-control

  4. grnidone
    Member
    Posted 8 years ago #

    Another thing, I've seen this page:

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    however, I am not clear if one can still admin the "Pages" using the wordpress admin panel. And, is it possible for one to create new pages using the admin panel but not have them under the /blog/ directory?

  5. ladydelaluna
    Member
    Posted 8 years ago #

    "That is how I have it now, but most of the pages are in the directory structure under /blog."

    If the PAGES were created with WordPress, and are under "/blog" then you have WordPress installed in a "blog" subfolder on your server.

    You need to have it installed in the root directory on your server. And then you can create a category for "blog" so that POSTS go there, but pages will be www.yoursite.com/pagename

  6. grnidone
    Member
    Posted 8 years ago #

    I don't have it installed in a subfolder. I am wondering if perhaps the plugin is messing things up.

  7. moshu
    Member
    Posted 8 years ago #

    Yes. As far as I know you have that "folder" due to the plugin.

  8. grnidone
    Member
    Posted 8 years ago #

    ok. Somehow I fixed it. I don't know how, but I fixed it. It was the plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic