How to install WordPress in subdirectory? (4 posts)

  1. aisajib
    Posted 4 years ago #

    Hello all! Well, I'm confused if this is the right category to post about this. I don't have any problem installing my WordPress and I have a few WP blogs running well. But I'm planning of creating a few more blogs in the subdirectory of existing domains.

    Let's see I own example.com and a WordPress is running on it. Now I want to create a dedicated blog to music at example.com/music. I know the structure looks like a page, but I also know it's possible to host a total new installation in such address. The question is, how?

    Will it be okay if I simply create a directory on public_html folder and install a new WordPress there? Or there are some other things to get this done? Please note that my hosting had disabled subdomains so I can't create a new subdomain. Subdirectory is the only choice.

    I have another 24 MySQL databases left so I can assign new databases to new WordPress installations. The question is, again, how to install WordPress in subdirectory while the root is already running a wordpress?

  2. jonradio
    Posted 4 years ago #

    You can run as many WordPress installations as you wish on a single domain name. Personally, I install each in a different folder, then select which one I want to run on the domain itself using this technique:

    All the rest remain active and usable, and are accessed by specifying example.com/folder as the URL.

    What you propose will work, but you will, over the long term, find the approach detailed in that documentation easier to deal with, as it is just too easy to delete the wrong files in the root of a domain.

    Another alternative is multisite which I have just started to use. Details are here:

  3. dalston
    Posted 4 years ago #

    I think this answers my enquiry, but need to make double sure before I change anything on the server.

    I am supporting the MySQL website of my client and updating it regularly with Dreamweaver. I want to suggest moving to WordPress and want to show them this by inviting them to have a look at a subsection of their own website. But at the same time I can't risk disrupting what they already have.

    So can I set up a subdirectory on their website and put little example blogs into that, whilst the top directory runs as usual? I.e. http://www.example.com runs as before, but http://www.example.com/theme1 and http://www.example.com/theme2 runs WordPress in separate subdirectories?

  4. jonradio
    Posted 4 years ago #

    My preferred approach to addressing your needs would be to install WordPress twice, once in each folder, /theme2/ and /theme1/, rather than any of the methods discussed above.

    An added bonus is that, if you decide that say /theme2/ is what you want to be your final production system, it is easy to make it look like the root (URL of just the domain name) and do a near instant switch from your current DreamWeaver site.

Topic Closed

This topic has been closed to new replies.

About this Topic