Title: Redirect Failed Login
Last modified: August 31, 2016

---

# Redirect Failed Login

 *  [PrattisDev](https://wordpress.org/support/users/prattisdev/)
 * (@prattisdev)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/redirect-failed-login/)
 * How do I redirect users to the homepage with a failed login if I’m using a different
   login slug
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/redirect-failed-login/#post-7019693)
 * [@prattisdev](https://wordpress.org/support/users/prattisdev/)
 * How do you do it when not using a different login slug ?
 * dwinden
 *  Thread Starter [PrattisDev](https://wordpress.org/support/users/prattisdev/)
 * (@prattisdev)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/redirect-failed-login/#post-7019708)
 * I don’t know how to do it at all but from looking up from Google it seems that
   you might be able to redirect when the website uses the &login=failed in its 
   hyperlink. However, when using a different login slug, it doesn’t do that at 
   all and remains the same one.
 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/redirect-failed-login/#post-7019719)
 * [@prattisdev](https://wordpress.org/support/users/prattisdev/)
 * I think the login=failed url parameter is a customization … It’s not a standard
   WP login page URL parameter.
 * Make it easier for yourself. Take 1 step at the time.
 * First make it work while not using a different login slug.
    Then take the next
   step and change the login slug.
 * Use the wp_login_failed action hook to redirect to the homepage upon a failed
   login attempt.
 * Only if changing the login slug breaks the wp_login_failed action hook solution
   then this is an iTSec plugin issue …
 * dwinden

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirect Failed Login’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)

 * 3 replies
 * 2 participants
 * Last reply from: [dwinden](https://wordpress.org/support/users/dwinden/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/redirect-failed-login/#post-7019719)
 * Status: not resolved