WordPress.org

Support

Support » Plugins and Hacks » .htaccess : Return 404 Not found instead of redirecting

.htaccess : Return 404 Not found instead of redirecting

  • halben
    Member

    @halben

    Is it safe to use this .htaccess to block out wp-login.php & wp-logout.php & wp-admin ??

    RewriteCond %{REQUEST_URI} wp-login.php|wp-admin
    RewriteCond %{REMOTE_ADDR} !^123.456.789.
    RewriteRule . - [R=404,L]

    If anyone knows a better solution, please post. Thanks for looking.

  • The topic ‘.htaccess : Return 404 Not found instead of redirecting’ is closed to new replies.