• Resolved dobbiedada

    (@dobbiedada)


    Hi – I have a server with multiple blogs (*not* multi-site – separate multiple blogs).

    By default, if you create a new folder for each installation in your root web folder, the format of the sub-domains seems to be:

    https://www.mysite.com/subdomain1
    https://www.mysite.com/subdomain2
    etc

    I would like to find a way to install a sub-domain that comes before the URL, e.g:

    subdomain1.mysite.com
    subdomain2.mysite.com
    etc

    Is there a way to do this? Again, bear in mind these are multiple separate blogs, this is not wordpress multi-site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dobbiedada

    (@dobbiedada)

    I should also mention, the multiple blogs are installed with multiple separate databases that each have separate users, just in case that matters.

    Subdomains should be fine for individual installs. Are there particular issues you’re encountering, or just checking before you proceed?

    Thread Starter dobbiedada

    (@dobbiedada)

    My apologies if my question wasn’t clear.

    I have figured out how to install subdomains that go AFTER the url (www.mysite.com/subdomain1 etc). What I would like to be able to find out is, how can I make the subdomain go BEFORE the url (subdomain1.mysite.com etc).

    It depends on your hosting. Some hosting allow unlimited subdomains, and you can add a subdomain through their hosting panels. Once you add it you’ll just upload a new install of WordPress, create a new database, and go through WP install process.

    One thing to clarify is that subdomain is typically anything like subdomain1.mysite.com, whereas a subdirectory install would be mysite.com/subdirectory

    Thread Starter dobbiedada

    (@dobbiedada)

    No problems, I have figured this out – you set it up via apache. I am hosting this myself so I don’t have to worry about a hosting service defining how I configure the web servers.

    For example, https://squeezesetup.wordpress.com/adding-subdomains-to-apache/ shows how to do it with multiple virtual hosts and https://httpd.apache.org/docs/2.2/vhosts/mass.html shows how to do it without multiple virtual hosts. If you set it up with multiple virtual hosts you use more memory but have separate log files etc, and if you set it up without multiple virtual hosts you use less memory but share a log file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Want to install multiple blogs with leading sub-domain’ is closed to new replies.