WordPress.org

Ready to get started?Download WordPress

Forums

Have main site in sub directory (5 posts)

  1. omiron
    Member
    Posted 1 year ago #

    Ive installed wordpress into a folder called "blogs" on my server and created two sites. This leaves me with the following:

    http://www.existingsite.com/blogs
    http://www.existingsite.com/blogs/blog1
    http://www.existingsite.com/blogs/blog2

    So I actually have 3 sites with the "main" one under http://www.existingsite.com/blogs. Is there a way to get rid of this? i.e. I want all my sites to be in subdirectories and not http://www.existingsite.com/blogs pointing to an actaul blog as this doesn't make sense

  2. ClaytonJames
    Member
    Posted 1 year ago #

    Are you able to install WordPress at the root of your site, rather than in a sub-directory? That would certainly remove the "/blogs" directory from your URL's.

  3. omiron
    Member
    Posted 1 year ago #

    I'm not able to no I have an existing site there.

    I actaully want to keep the blogs directory, I have an existing site and I'm adding a new blogs area to it. Then what I want is a sub directory for each blog, such as:

    http://www.mysite.com/blogs/cancerblog
    http://www.mysite.com/blogs/aidsblog
    http://www.mysite.com/blogs/transplantblog

    etc

  4. ClaytonJames
    Member
    Posted 1 year ago #

    I don't believe you can successfully serve WordPress files from root while giving WordPress its own directory, if you already have a site located in root. Don't hold me to it, but I'm not positive that would work out. Have you given any consideration to installing WordPress on a sub-domain as an alternative? Example:

    awareness.yoursite.com - or - appropriate_name.yoursite.com

    That way, your blog sites in sub-directories would look like:

    awareness.yoursite.com/cancerblog
    awareness.yoursite.com/aidsblog - etc...

    [edit] I'm not sure if this will be of any assistance or not, but take a look at the Create A Network documentation in the Codex and see if it sparks any ideas. I'm not very well acquainted with the details of what can and can't be done with a network setup, so there may be some options there I haven't mentioned.

  5. I don't believe you can successfully serve WordPress files from root while giving WordPress its own directory, if you already have a site located in root.

    You are correct. You can not have WP act as if it was in root without it actually ... acting like it's in root ;)

Topic Closed

This topic has been closed to new replies.

About this Topic