• Hello,

    I’m having a problem with some sites I run (3 separate WordPress installations) and their.htaccess files.

    The sites are:
    https://www.faitici.ca/eng
    https://www.faitici.ca/fr
    https://www.faitici.ca/blog

    The first two sites are working fine, but I cannot access the WordPress backend (/wp-admin) for the blog site. I’m pretty sure this has to do with the content of my .htaccess file(s).

    When I delete the .htaccess file for https://www.faitici.ca/blog, I am able to access wp-admin with no problem, but permalinks within the blog site point me to a 404 error on the https://www.faitici.ca/eng site.

    When I put the .htaccess file back, I can’t access the wp-admin page, but permalinks/deep links within the blog site work fine.

    This leads me to believe that I have an issue with my .htaccess file for the blog site. Can anyone help by telling me what should be in it? Here’s what’s in it right now:

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

    DirectoryIndex /blog/index.php

    I also have this in the .htaccess file for the root of the site:
    AddType x-mapp-php5 .php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /eng/index.php [L]
    </IfModule>

    # END WordPress

    …and when I try to remove it, permalinks within the English site don’t work.

    This is driving me crazy – am I wrong to think that I shouldn’t need any of these .htaccess files at all?

    Thanks very much in advance for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with .htaccess and accessing /wp-admin’ is closed to new replies.