WordPress.org

Forums

How to set-up wordpress on 2 subdomains and display posts of both on the main (10 posts)

  1. ewergreen
    Member
    Posted 4 years ago #

    I'd like to install a wordpress network. There's two subdomains which should run wordpress. Don't care whether it's installed on the main domain or not. Whatever is easier. The main domain will probably only hold one page with the top level navigation of both subdomains and some recent posts.

    Having the navigation on this page will be easy. I'm not sure how hard it would be to have some recent posts there.

    Have yet to set-up the complete installation, so any information/help would be appreciated!

  2. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    Sounds to me that you should install WP in domain root - http://www.example.com - so that you subsites in subdomains e.g. site1.example.com and site2.example.com

    Check out WordPress codex - Create A Network

  3. Well if you want site1.example.com and site2.example.com and you have to install it in the root....

  4. ewergreen
    Member
    Posted 4 years ago #

    Mercime (or anyone else). So I'd make two subdomains (using directadmin), after which I install WP on the main domain. The installation process will then let me install in on site1.example.com and site2.example.com, but will also install itself on example.com?

    This will make it possible to send info from site1.example.com and site2.example.com to example.com? Just want to make sure this would work. I'm pretty good with PHP, but have yet to make my first wp site.

  5. No, you'd make one install and no subdomains. You;d set up a wildcard subdomain record.

    Everything is in the link above.

  6. @mercime
    Volunteer Moderator
    Posted 4 years ago #

    To put it as simply as possible, all that you want can be done in one installation of WP at at domain root, e.g. http://yourdomain.com providing your server setup meets the requirements for additional sites in subdomain structure. After you set up WP in domain root, you can create the subdomain sites from the backend of your WP install in root. And yes, you can get the posts from the two subdomains into your main installation.

    So if you haven't done it yet, ask your webhosting service, if you have one, if your hosting meets requirements for subdomain structure in link given. If not, then you will only be able to create subdirectory sites from the main installation.

  7. ewergreen
    Member
    Posted 4 years ago #

    Ok, so I just found out that I can't use the subdomain installation. I can however set subdomains on my server. So now I'm curious if there's a way to "fake" subdomains instead of having to use subdirctories, which I'd rather not use.

  8. Make the subdomains on your server, but point them to the wordpress folder, not their own.

  9. ewergreen
    Member
    Posted 4 years ago #

    Andrea, I'm REALLY happy that this could work, but I'm afraid that I'll need a bit more information. Googled around a bit on "wordpress faking subdomains", but no luck...

  10. Well it's not a wordpress issue is why.

    I can however set subdomains on my server

    Go do that.

    In whateve rcontrol panel you are usng to do that, if you can tell it where the subdomain folder is on the server - GREAT! tell it is it the SAME folder as your main site. Not a new folder.

    If you can't - you cannot use subdomains.

Topic Closed

This topic has been closed to new replies.

About this Topic