Hi nsidestrate!
I think maybe you make thing a little more complicated than is needed. The URL for you secondary blog seem a bit overloaded with the “/www.secondary.com/blog/” part.
Do you really have a subdirectory of your primary blog with name http://www.secondary.com contining a directory /blog ?
It’s not really clear waether you have one or two installations of WordPress. If you have, why don’t you settle for <YourDomain>/primaryblog/ and <YourDomain>/secondaryblog ?
If you are using the same WordPress installation, you might want to have a glanse at http://wiki.wordpress.org/?pagename=MultipleBlogs
Hope this makes you some good.
Happy 2006
petit, may I suggest to refer to the Codex, like this:
http://codex.wordpress.org/Installing_Multiple_Blogs
because the “old” wiki was mainly for earlier versions of WP and is outdated. (They keep it just as an archive of the old instructions)
Right moshu, I didn’t notice I was on the wiki – sorry.
In an effort not to provide too much information, I seem to have provided too little.
I only have one blog and it lives at http://www.secondary.com/blog
The domain scondary.com is hosted by my webhost as a subdirectory to my primary domain. My primary domain contains my lastname and is used exclusively as a vanity domain for family members to have permanent email and hosts a few private pages. When you look at the primary domain in FTP, there is indeed a directory named “www.secondary.com” and it does contain all the files for the secondary domain. I have a variety of other stuff working on the secondary domain and it always works fine with the http://www.secondary.com/whatever addresses. I’m not really sure what black magic the host uses to do the remapping. Maybe .htaccess or mod_rw? I don’t know.
When you type http://www.secondary.com/blog, my blog is displayed, but the URL in the browser’s address bar is changed to “www.primary.com/www.secondary.com//blog” I am reasonably sure this is caused by some function in the WordPress software that extracts the current directory and rebuilds the URL and I hope someone can point me at that function. I also just noticed that it has “//” before the blog directory, but I don’t know if that is a significant clue.
When I click on anything other than the main title bar, it builds the URL properly as http://www.secondary.com/blog/?m=200601 and so forth. It is just the main page that acts strangely.
I’ve been hacking through the codex to try to find something related to my problem, but I’m not even sure of an appropriate search term. I did write to my webhost as well, but they referred me back to WordPress.
I found the solution in a document on relocating my blog to a new directory. The key was the Blog Address (URL) in my General Options setup. I changed the Blog Address from “http://www.secondary.com/blog” to “http://www.secondary.com/blog/index.php” and that makes it work without expanding into the undesirable address form. I don’t really understand <b>why</b> it works and it is slightly less pretty than the previous “http://www.secondary.com/blog” notation, but I can live with this.
If anyone has more light to shed on what is going on, I’d be pleased to learn for my own edification, but I consider my original issue resolved acceptably. Thanks to those who helped!