• Resolved davidlyness

    (@davidlyness)


    I currently have WordPress installed in both mydomain.com/wordpress and mydomain.com/tech, the former accessible by going to mydomain.com, and the latter was just installed today. Previously, if you navigated to mydomain.com/feed, you got the RSS feed of the first blog. However, today if you navigate to mydomain,com/feed you get the feed of the tech blog. In addition, clicking any tags or categories etc on the main blog will redirect to the tech blog. I believe that this is a problem with my .htaccess settings: what I want to happen is anything in the /tech/ directory to be handled by the tech blog, and everything else to be handled by the main blog. Here are my current settings:

    Options -Indexes

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /tech/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /tech/index.php [L]
    </IfModule>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thanks for any help you can give me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • did you use the same database for both installs?
    If so, did you change the $table_prefix in wp-config.php? for the 2nd install

    Thread Starter davidlyness

    (@davidlyness)

    I fixed the problem by changing the contents of the .htaccess file to the following:

    Options -Indexes

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^/(tech)/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /tech/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /tech/index.php [L]
    </IfModule>

    # END WordPress

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with multiple WordPress installations on the same domain’ is closed to new replies.