Title: Custom Redirect
Last modified: August 30, 2016

---

# Custom Redirect

 *  Resolved [INIwebteam](https://wordpress.org/support/users/iniwebteam/)
 * (@iniwebteam)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-redirect-3/)
 * I have a security plugin that alters the standard WP login URL. B/c of that, 
   whenever this plugin logs my out, I get a 404 error (b/c the standard WP login
   page doesnt exist).
 * Is it possible to redirect to a custom login URL?
 * [https://wordpress.org/plugins/idle-user-logout/](https://wordpress.org/plugins/idle-user-logout/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Abiral Neupane](https://wordpress.org/support/users/abiralneupane/)
 * (@abiralneupane)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-redirect-3/#post-6715899)
 * Currently it do not have such feature, but if you are a developer you can use
   WordPress hook to make the plugin work like you wanted.
 * Anyway, you can paste following code in your current theme’s functions.php file
 *     ```
       add_filter( 'iul_action', 'modify_iul_action' );
       function modify_iul_action($action){
       	$action['action_type'] = 5;
       	$action['action_value'] = 'http://google.com';
       	return $action;
       }
       ```
   
 * Where action_type = 5 means, it will not logout you from the site but, redirect
   you to the custom url. If you want to logout user and redirect user to custom
   url, use 2 instead of 5.
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Custom Redirect’ is closed to new replies.

 * ![](https://ps.w.org/idle-user-logout/assets/icon-256x256.png?rev=1185856)
 * [Idle User Logout](https://wordpress.org/plugins/idle-user-logout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/idle-user-logout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/idle-user-logout/)
 * [Active Topics](https://wordpress.org/support/plugin/idle-user-logout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/idle-user-logout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/idle-user-logout/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Abiral Neupane](https://wordpress.org/support/users/abiralneupane/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/custom-redirect-3/#post-6715899)
 * Status: resolved