WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] A different sort of WP in its own directory question (8 posts)

  1. Will Taft
    Member
    Posted 5 years ago #

    If I install WordPress to a sub folder of the root directory like this: Root>blogname and then set the blog address within WordPress to that folder, will people going to: mydomain.com>blogname get taken to the blog and bypass the main site installed in the root directory? This is what I want.

    I don't want this site to go to the WordPress install unless someone puts in the whole url to the blog, or clicks on a link from the home page or somewhere else they find the link. This site is a regular, non-WordPress website, we just want a WordPress blog as part of it.

    In other words, I don't want WordPress to power the root directory the way the codex explains it working when you follow the instructions to give WordPress its own directory.

    OR: would it be better to keep the two things separate and have the blog at its own domain unattached to the existing website and just link to it from the existing site?

    Thanks.

  2. viiiadesign
    Member
    Posted 5 years ago #

    I don't really understand your question. I looked at your site and it already seems to be the way you said you wanted it to be. At any rate, if you're dead set on making sure it stays separate from your main site, I'd recommend putting it in a sub-domain, such as blog.yoururl.com. Not sure what hosting company you're using, but I'd check in your cPanel to see if there's some nice and easy way to throw in that sub-domain and setup WordPress.

  3. Will Taft
    Member
    Posted 5 years ago #

    I am sorry I did not make this clear. My fault! I am talking about another site, not the one linked to my profile here which is an all WordPress site.

    The domain in question already has a conventional web site running on it but with no blog. We want to keep everything as it is, but ADD a WordPress blog. The site is being moved to a new host and we will be adding a WordPress blog as part of the site. There is no WordPress install on that site now. I am combining efforts with a person who has the existing site.

    So the questions in my original post do not relate to my exiting site at wtdotcom.

    And yes we use cpanel and can easily put set up addon domains. But that would put the blog at its own domain with its own url unrelated to to the main site. We can do this, as a matter of fact I do exactly this with my exiting wtcom site. I have a testing WP install in an addon domain.

    But what I was originally asking was do we need to do it that way and give the blog its own name and url, or can we set it up as maindomain.com/blog and have no WorPress files in the root directory. We don't want anything to interfere with the website installed in the root.

    Thanks

  4. threestyler
    Member
    Posted 5 years ago #

    If I install WordPress to a sub folder of the root directory like this: Root>blogname and then set the blog address within WordPress to that folder, will people going to: mydomain.com>blogname get taken to the blog and bypass the main site installed in the root directory? This is what I want.

    If you install your blog at /root/blog/

    and someone types in yourdomain.com/blog/ they will arrive at your blog.

    If you change the blog address from within WordPress to anywhere other than where your blog is installed. When you try and view the blog at yourdomain.com/blog it will redirect you to the modified address and you won't be able to access your blog again without modifying the htaccess or a table in the database.

  5. Will Taft
    Member
    Posted 5 years ago #

    If you install your blog at /root/blog/

    and someone types in yourdomain.com/blog/ they will arrive at your blog.

    Thanks, that is one of the things I needed to know. So installing WordPress to yourdomain.com/blog does not in any way affect the website one level up at yourdomanin.com? And if they type or click a link to arrive at yourdomain.com, they will get the conventional website that is already there?

    If you change the blog address from within WordPress to anywhere other than where your blog is installed. When you try and view the blog at yourdomain.com/blog it will redirect you to the modified address and you won't be able to access your blog again without modifying the htaccess or a table in the database.

    That part I understand.

  6. threestyler
    Member
    Posted 5 years ago #

    if they type or click a link to arrive at yourdomain.com, they will get the conventional website that is already there?

    That's right, it won't affect the root. :)

  7. Will Taft
    Member
    Posted 5 years ago #

    Thanks!

  8. sito
    Member
    Posted 5 years ago #

    Hi WT,

    Sorry for coming into this thread quite late. I am quite interested in doing the same thing as the site linked to in your profile. That is, I want the blog posts to appear in domain.com/blog/ and have some form of splash page, about me, etc. on the top level, i.e. domain.com/about-me, which I intend to set up using "pages". May I know how you have set up the directory structure?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic