• Hello πŸ™‚

    I have WordPress 2.8.6 installed on three locations on my domain:

    domain.com root
    domain.com/folder1
    domain.com/folder2

    Unfortunately I cannot use WP MU at this time so I am just using three separate installations.

    They were all messing up and I couldn’t get one to show if the other was showing, so I used this in the .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/(folder1|folder2)/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /%1/index.php [L]
    </IfModule>
    
    # END WordPress
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /%1/index.php [L]
    </IfModule>
    
    # END WordPress

    But now, .html or any other files in the root are not visible (404 Not Found).

    I would like my WP permalinks in the root, folder 1 and folder 2 to work properly, and all of the other .html (old) files to also be visible.

    Could someone please help me out? I apologize in advance if I made any silly mistakes — new to this!

    thank you very much.

Viewing 1 replies (of 1 total)
  • I had this same problem and was able to resolve it using multiple .htaccess files. Put your primary wordpress installs info in the root of your site….

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

    Then in your second wordpress instance (example: /direactory2/) create another .htaccess file and drop in this code….

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

    Using this solution I was able to solve my problem and run as many wordpress instances as I wanted.

    ProIT Hosting

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple WordPress installations in subfolders .htaccess’ is closed to new replies.