Madhurie Singh . Com

How to build my own web site from my wordpress blog !

Creating Multiple subdirectories wordpress installation in one single database one domain.

Posted by Madhurie Singh on September 12, 2009

I am gonna try creating multiple wordpress installations as I have three wordpress blogs that I want to publish in one domain.

I initially thought of trying different database for different installations but then I realised I will have lots of back related work in future!

Also I know my target readers will be nearly the same like minded people who are like me and want all that I seem to be writing about.
So keeping all related data in one database makes sense provided I keep different tables for different wordpress installations.

Now I have done it for my four blogs, ofcourse only the database and wordpress installation part till today.:) But that is an achievement.
I encountered 500 internal server error, then 404 page not found and multiple redirection to a url as errors :(. But I managed to solve but the internal sever error. See my next post for the 500 internal server error solution.

So to start with when I have three blogs which I want to install in one domain, I must have a way to redirect people to each one of them seprately, right?
So it makes sense that I create a homepage where I will have all the links to my several other blogs.

So for that homepage also I created a separate wordpress installation. I name it homepage obviously.

Since when ever someone types in my domain url i.e., I want it to goto the homepage.

So I create a subdirectory in the root /public_html a subdirectory called “Homepage” and install wordpress in it through the Simple Scripts. All the files are now under one subdirectory call /public_html/Homepage .

Now I make a temporary directory in root directory, and name it “Tempdir”. so I have public_html/Tempdir

Again I select the “Homepage” directory, and copy it into “Tempdir”.

Then I rename this copied directory which has same name as “Homepage” as my new Blog name i.e. “OnlyForKids”

Now I move this subdirectory from “Tempdir” to my root directory /public_html/OnlyForKids

So now under root directory I have three subdirectories


I delete “Tempdir” .

Now I type .

I am taken to the page where wordpress wants me to enter the Blog Name and my email id .

After I enter the details, a login id and password is generated by wordpress. I copy the password and login the admin page of my blog.

The first thing I do is change the password in my profile page to a more memorable password.

I repeat the same procedure for my other blog and type

Again I get new login and new password for the second blog.
I change the password and I own two different blogs under one domain name but a single database.

Now I need to change the URL such that, even when I type I am actually redirected to the subdirectory URL !:)

So to enable this, I first goto the admin page of my first blog, HomePage.

I select the settings page.

Here I leave the first URL, i.e. WordPress Blog URL as it is to
but I change the second line i.e Blog URL as typed by others to
I save this setting.

Now I go back to the cPanel of my webhost.
Here I locate the index.php file under the subdirectory HomePage.

I COPY (not move) the index.php file from subdirectory HomePage to the root directory /public_html

Now I open the index.php file in any editor.

I goto the line 17 and change the call
require(‘./wp-blog-header.php’); to require(‘./HomePage/wp-blog-header.php’);

I save this index.php file and close it.

Now I type in browser

I am taken to the url directly ! 🙂

yippppppppyyyyyyy I have done it again !:)


21 Responses to “Creating Multiple subdirectories wordpress installation in one single database one domain.”

  1. Really Informative………………………………………

  2. Nate said

    Well you kind of did what I want to do, but my goal is to create a replica of my site into a subfolder so I can change my layout, plugins, images etc before I take it live. So I want to basically copy by database, change the files to read, and access the admin to make changes. I plan to simply copy the wp-content file into the root once the changes are made and instantly have a new layout and look. Any easy suggestions on how to do this?

  3. web007 said

    thanks for your blog.. it’s helpful for me..

  4. l oreal skin expertise collagen filler wrinkle treatment double filler

  5. is cellulite caused by toxins

  6. homemade hydroponics system growing weed

  7. Lake Linden acupuncture back pain

  8. painless solutions for cellulite treatment hoopa described

  9. reel king said

    It’s awesome designed for me to have a site, which is good in support of my knowledge. thanks admin

  10. Hello just wanted to give you a quick heads up and let you know
    a few of the images aren’t loading properly. I’m not sure why but I
    think its a linking issue. I’ve tried it in two different internet browsers and both show the same outcome.

  11. procera said

    So rather than strolling at a constant pace for say an hour,
    you would modify matters up by alternating quick bursts of extreme strolling for say a minute followed by
    a recovery time period with slower walking following
    every single intense time period. Just hold alternating for 20 minutes to begin and include time
    when you become additional match. You’ll be able to use interval coaching with all phases of your procera avh to boost your final results.

    Also after you do any form of work out it truly is strongly encouraged which you drink plenty of water in advance of through and following to keep the body adequately hydrated.

  12. Hi, always i used to check website posts here early in the morning,
    for the reason that i enjoy to gain knowledge of more and more.

  13. Yes! Finally something about boobs.

  14. Windows 8 said

    Hi colleagues, nice paragraph and fastidious urging commented at this place, I am actually enjoying by these.

  15. I love what you guys tend to be up too. This type of clever work and
    exposure! Keep up the awesome works guys I’ve incorporated you guys to my own blogroll.

  16. Excellent weblog right here! Additionally your site so much up
    very fast! What host are you using? Can I get your affiliate link in your host?
    I desire my web site loaded up as fast as yours lol

  17. Major factorsThere are many reason for cellulite zucker on legs and the tattoo has vanished.
    Consuming juices will give the lymph time to catch up
    to the expectations of the customer. Lookup in advance of
    purchasing any kind of citrus oil to the mixture.

  18. Every weekend i used to pay a visit this web page, for the reason that i want enjoyment, since this
    this web page conations really fastidious funny stuff too.

  19. Hi, I wish for to subscribe for this weblog to take latest updates, thus where can i
    do it please assist.

  20. Thank you, I have just been searching for info approximately this topic for a while and yours is the greatest I’ve found
    out so far. But, what concerning the bottom line? Are you positive in regards to the supply?

  21. スマホで読めるコミックは、専用のコミックビューワーで見るので振動などの機能もあって、ドキドキして読むことができます。

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: