WordPress.org

Support

Support » How-To and Troubleshooting » You don’t have permission to access /blog/wp-login.php on this server

You don’t have permission to access /blog/wp-login.php on this server

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have tried changing the permissions on the .htaccess file and I have tried changing the content to:

    NO! The instructions says that you add a separate .htaccess containing the lines above to the wp-admin folder – and leave the main .htaccess, in the root, alone.

    OK, I’ll give that a try Moshu. Thanks for your help.

    I just searched both blogs for a htaccess file in the root folder and there was no such file. I looked in the other folders and the only file of that name was in wp-admin which contained the following

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    (I had experimented with the following but now restored to the above
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule> )

    So if there is to be a .htaccess file in the root, what text should it contain?

    Thanks!

    Thanks Moshu
    I copied the .htaccess file as is from the wp-admin and placed it in the root folder and bingo! Thanks

    natattack06
    Member

    @natattack06

    I tried the same thing as t3spiritz and still get 404 error.

    When hitting “login” to add a comment to a posting, the error appears. I copied the wp-admin .htacess into the sites root directory.

    I also set options.php to 755, 770 and nothing changed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘You don’t have permission to access /blog/wp-login.php on this server’ is closed to new replies.