WordPress.org

Support

Support » How-To and Troubleshooting » From wp-login to wp-admin 403 forbidden

From wp-login to wp-admin 403 forbidden

Viewing 4 replies - 1 through 4 (of 4 total)
  • organicpop
    Member

    @organicpop

    did i say mt? i meant wordpress.

    organicpop
    Member

    @organicpop

    Does anybody have some advice?

    ClockParadoX
    Member

    @clockparadox

    I am having this problem too.

    I want subscribers to login via the wp-login.php, and then redirect back to the blog. But for some reason, as soon as people log in, they are directed to <site>/wp-admin/

    How can we fix this?

    I just ran into this and thought I’d post my resolution for posterity.

    Our client’s host had a mod_security rule that matched on =http.

    Going to
    example.com/wp-admin/
    redirects you to
    example.com/wp-login.php?redirect_to=http://...
    triggering a 403 Forbidden status from mod_security.

    To work around it, add the following to your the top of your .htaccess.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} ^redirect_to=http
    RewriteRule ^wp-login.php http://example.com/wp-login.php? [R=301,L]
    </IfModule>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘From wp-login to wp-admin 403 forbidden’ is closed to new replies.