Title: [Plugin: Hidden Login] Problem with redirection
Last modified: August 19, 2016

---

# [Plugin: Hidden Login] Problem with redirection

 *  [mejjad](https://wordpress.org/support/users/mejjad/)
 * (@mejjad)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-hidden-login-problem-with-redirection/)
 * Hey. I downloaded the hidden-login plugin november 17. I installed it and set
   the keystrokes to ctrl-shift+l.
 * My wordpress blog is located at an address looking like this: [http://localhost/~something/WP/](http://localhost/~something/WP/).
   When I surf to it and hit the designated key strokes I’m redirected to [http://localhost/wp-admin](http://localhost/wp-admin)(
   not found).
 * I tried to fix this myself, but my php skills are lacking… I found this line (
   line 79) in the hidden-login.php file:
    <input type=”hidden” name=”redirect_to”
   value=”<?php bloginfo(‘wpurl’); ?>/wp-admin” /> and I changed /wp-admin to ~something/
   WP/wp-admin
 * When I tried that I actually got the very nice looking login-pop-up on the middle
   of the screen. I filled in login and password, hit OK and was directed to [http://localhost/~something/WP/~something/WP/wp-admin](http://localhost/~something/WP/~something/WP/wp-admin)(
   not found).
 * Any ideas?
 * [http://wordpress.org/extend/plugins/hidden-login/](http://wordpress.org/extend/plugins/hidden-login/)

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

 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-hidden-login-problem-with-redirection/#post-1775999)
 * looks like a problem if wordpress isn’t installed in the root.
    same problem 
   here 🙁
 *  Plugin Author [aterris](https://wordpress.org/support/users/aterris/)
 * (@aterris)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-hidden-login-problem-with-redirection/#post-1776122)
 * Sorry, I just saw this post.
 * I actually have an update (1.1) coming very soon that no longer assumes you are
   installed at root. I apologize for not releasing earlier, but work has been crazy
   busy.
 * [@mejjad](https://wordpress.org/support/users/mejjad/), you found 1/2 of the 
   problem. There are actually 2 redirects, one for if you are already are logged
   in and the one after you enter your login info.
 * line 79 in hidden-login.php (logging in)
    line 69 hidden-login.js (if already
   logged in and pressing key code)
 * the one at line 79 should be correct for you by default (since it pulls the blog
   address and add wp-admin
 * the one at line 69 could just be hardcoded to what you want, something like…
   
   window.location.href = ‘[http://localhost/~something/WP/wp-admin&#8217](http://localhost/~something/WP/wp-admin&#8217);
 * hopefully that works, but I have to run right now since I am at work. As I said,
   this will be address in a clean manner in my 1.1 update, which should be coming
   out within the next week
 *  Thread Starter [mejjad](https://wordpress.org/support/users/mejjad/)
 * (@mejjad)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-hidden-login-problem-with-redirection/#post-1776123)
 * Awesome. 🙂 Thanks a lot. I’m looking forward to that update. 🙂

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

The topic ‘[Plugin: Hidden Login] Problem with redirection’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hidden-login.svg)
 * [Hidden Login](https://wordpress.org/plugins/hidden-login/)
 * [Support Threads](https://wordpress.org/support/plugin/hidden-login/)
 * [Active Topics](https://wordpress.org/support/plugin/hidden-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hidden-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hidden-login/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [mejjad](https://wordpress.org/support/users/mejjad/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-hidden-login-problem-with-redirection/#post-1776123)
 * Status: not resolved