Forums

Yet another permalink disaster ... two blogs don't play along? (1 post)

  1. erick_paper
    Member
    Posted 4 years ago #

    Hi. I want to run two blogs on one domain. So I am setting up two separate WP installs as required.

    Their WordPress installation URL is:

    1. http://domain.com/wp/wp-admin
    2. http://domain.com/wp2/wp-admin

    This works.

    For both blogs, I have the website itself running from outside WP directories, so I have their "blog URLs" as follows, respectively:

    1. http://domain.com/site/
    2. http://domain.com/site2/

    This is how I have set it up in the Options --> General in the admin in each blog.

    I have also created the physical folders "site" and "site2". And each of these folders has its own index.php. The code is as advised--for example, inside the "site" folder, the index.php is:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('../wp/wp-blog-header.php');
    ?>

    Finally, I would like to manage all the permalink stuff from within my root folder through the site wide .htaccess file, which is presently as follows:

    RewriteEngine On
    
    RewriteBase /site/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /site/index.php [L]
    
    RewriteBase /site2/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /site2/index.php [L]
    
    RewriteBase /wp2/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp2/index.php [L]
    
    RewriteBase /wp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]

    Both the WP admin sites are working fine. I can administer the blogs separately and properly.

    But site and site2 are not working. I can see their front page fine, but when I click on an individual post link, it always ends up on site2. Even from "site", it ends up on "site2"!

    (Neither of my themes have a "404" page. But the root .htaccess has a directive `ErrorDocument 404 /' which used to forward the user to the site's main page if there was a 404.)

    Any thoughts on what is going wrong, and how I can resolve this? I've been reading the manual to no avail!

    Thanks so much in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic