• Hello everyone,

    I have two blogs running on my website with the following URLs

    http://www.esanctorium.com/blog/
    http://www.esanctorium.com/photoblog/

    The .htaccess file is located in the root folder, i.e. http://www.esanctorium.com/ and this is how it looks:

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

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

    Now the /blog/ works fine and all permalinks work fine. However the /photoblog/ permalinks have issues, like if you go into /photoblog/ and click on “about” link, the about page of /blog/ opens insted of /photoblog/, same goes with catagories.

    How can i fix this problem.
    Appreciate all your help.
    Cheers.

Viewing 1 replies (of 1 total)
  • The .htaccess file is located in the root folder,

    you need an .htaccess in /blog and you need an .htaccess in /photoblog
    the .htacces for root will not work for the 2 installs.

Viewing 1 replies (of 1 total)

The topic ‘.htaccess rules for two blogs in same server’ is closed to new replies.