• Resolved greglocke

    (@greglocke)


    Hello!

    I have searched for a solution to my problem in the WP forums so I’d very much appreciate you input to my situation (and thank you in advance!):

    I want to install a separate, second blog within my domain. My initial blog is installed within a subdomain and when I set it up I I copied index.php and .htaccess to the root directory of my server to make it work (per WP’s instructions on this method). Everything works fine.

    Now I have created a new subdomain for my second blog and I chose to create a new SQL database and separate WP install (as I have this capacity with my server to do so.

    I read the forums and the oft-quoted Installing Multiple Blogs codex, most attempts at multiple WP installations seek to use one database.

    I have found that although my primary blog continues to “work” when linked from the primary domain (www.blog.com) the second blog (www.blog.com/blog2) won’t work – I get a blank screen. This is despite the fact I ensured that blog2 has its own index.php and of course, custom wp-congfig file for the second database, username and password, as per tehe codex.

    How can I get both blogs to work? I still want my primary blog to work from the primary URL, and the second blog to be invoked when the subdomain is entered.

    I believe the issue is connected to the index.php file in the root (that’s necessary to get my primary blog to invoke); if I edit that file to direct to blog.com/blog2, then the second blog functions and the primary blog crashes – but I cannot get both to work simultaneously. There must be a way to edit index.php to make both function. Or …it’s possible that .htaccess is to blame here but I don’t understand its functionality.

    Index.php in the root seems to be what’s messing things up here, but you have to have it – can anyone suggest what to do here?

    Thank you!

    Greg

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

    (@greglocke)

    OK now — I have solved the issue.

    My index.php in my subfolder was directing specifically to the subfolder (/blog/blog2). Specifying the very directory you are in I guess is not kosher in PHP.

    I’m not a programming expert – but I think this redundancy was screwing things up. I realized that if admin.php could load properly for the second blog then something simple was wrong in index.php of the second blog. So .. I removed the path to “blog2” which removed the confusion where to look for wp-blogheader.php (at it is in the same directory) and it works.

    So … case solved. Gotta love the simple fixes – whew.

    Greg

    If the blogs don’t use completely different stylesheets and such, rather than changing the director and/or database prefix, you could install multiple authors. What that does is give each individual author their own list of posts(sort of like if you were to click on a category it shows all the post within that category). With that being said instead of using each writers name, just use the new blog name. that way your links are still pretty. For instance if http://www.wordpress.org was your root your multiple authors would write http://www.wordpress.org/blog_name/ then it continues with categories and archives etc.

    I think this is what Hypebeast does for all their multiple blogs.

    Maybe it solve your problem:

    http://wordpress.org/extend/plugins/wp-hive/

    Hi,

    I’m having a similar problem with blog2. when I go to blog2/wp-login, I end up at the wp-login site of blog 1 and am unable to get into the wp of blog 2.

    I can’t use hive because the sites have to have separate designs ( headers for a multi-language mirror)

    any help would be appreciated.

    M

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Installing Multiple Blogs with Separate Databases and subdimains’ is closed to new replies.