Forums

[resolved] Installing another wordpress in subdirectory of wordpress installation (7 posts)

  1. asony999
    Member
    Posted 2 weeks ago #

    Hello all,

    I am going to launch my new site which will use wordpress as cms.

    I want to keep my blog separate from main site, but in same domain. Can I install wordpress in my site's sub directory?

    Main site: www.mysite.com - Main wordpress installation
    Blog site: www.mysite.com/blog - Wordpress installation in subdirectory

    Is it possible to install 2 wordpress like this?

    Thanks.

    asony

  2. adiant
    Member
    Posted 2 weeks ago #

    Yes, it is. Though the preferred approach is to have each WordPress in its own folder. With the one you want to appear when visitors type just your domain name set up as indicated here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  3. asony999
    Member
    Posted 2 weeks ago #

    Hi,

    Thanks for your information. I have checked the link, but I have some question.

    What will the URL of my blog?

    How the other urls will be created.

    Thanks.

    asony

  4. adiant
    Member
    Posted 2 weeks ago #

    If you choose to use two WordPress installations, one in subfolder /blog and the other subfolder /cms, whatever you specify in the Blog address (URL): field (see the documentation I referenced above) for each will be what you type (as a URL) to get to the blog. It sounds to me like you want to type http://www.mysite.com in the field for the /cms installation, and http://www.mysite.com/blog for the /blog installation.

    The URLs for pages and posts will be determined by how (and if) you define the Permalinks for each WordPress installation.

    I'm not sure that you aren't creating more grief for yourself than whatever you hope to gain by having two WordPress installations, as much of the automated menu creation mechanisms are based on a single WordPress installation. I've thought about it quite a bit and the only disadvantage I can think of, for sharing a single WordPress installation for both blog and CMS, is that you would have to limit yourself to a single Theme for both. Posts for the Blog and Pages for the CMS, except perhaps a Page for the Blog home page. The Blog home page could even use a different template than the CMS pages, if you wanted the structure to be different. I, for example, would probably had a sidebar on the Blog home page, but not on the rest of the CMS pages.

    Just a thought.

  5. asony999
    Member
    Posted 2 weeks ago #

    Great,

    Thank you very much for your help. I appreciate this.

    I am agree with your thoughts about 1 installation of wordpress, but my blog will be separate from my main site. Even the layout will be different.

    Thanks again.

  6. adiant
    Member
    Posted 2 weeks ago #

    Just to be clear: you can have a different Layout for Pages v.s. Posts v.s. the single home page of your blog site because the Template files can be different for each. What I am asking is whether you can live with the same Theme for both the blog and main site. If so, you can have a single installation do both, and save yourself a lot of grief.

    The same Theme really means the same CSS file for both. And a sharing of the header.php and footer.php files. Though, with some careful php coding, you can even work around those commonalities.

  7. asony999
    Member
    Posted 2 weeks ago #

    Yes, but my blog will totally different from my site. I know I can style my blog different than my site, by using same theme.

    But, these will be 2 different sites and may be I move the blog to a different domain.

    Thanks Again.

Reply

You must log in to post.

About this Topic