• Hi

    I have two installations of wordpress on one domain.
    1st one is on domainname.com
    2nd one is on domainname.com/blog

    The default htacess looks like this, but I get a 404 when I try to access domainname.com/blog

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    When I change the htaccess to the following, I can access domaninname.com/blog, but I get 404 when I access the posts on domainname.com.

    Can you please suggest me, how to make the required changes, so that both are accessible.

    Also, I have another subfolder at domainname.com/stats which I want to access, but I get a 404 again.

    I have done plenty of searches and edit the htaccess thousands of times, but nothing worked.

    Please help.

Viewing 1 replies (of 1 total)
  • Hey @saikarthikreddy,

    use this .htaccess code for “domainname.com/blog”

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress

    Let me know if you have any queries.

    Regards,
    Rachith

Viewing 1 replies (of 1 total)

The topic ‘WordPress htaccess problems’ is closed to new replies.