Can't Change Wp-Login to Login URL (11 posts)

  1. gotmedia
    Posted 5 years ago #

    Hi there,

    I have tried using mod-rewrite and various plugins, including Stealth Login for this, but none worked.

    The problem is that the WordPress address is similar to:
    http://www.mydomain.com/blog/wp-admin/ and I want it to be

    How do I do this since it's in its own folder?

    Here's the code I'm trying to tinker with, unless there's a better solution?
    RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L]

  2. zakhooi
    Posted 4 years ago #

    I'm looking for the same solution.
    Looks like the stealth plugin doesn't work with WP 3.2.1
    Did you find a solution yet?
    btw, I think you need a rule that denies http://www.mydomain.com/blog/wp-admin too...

  3. janmalagucute
    Posted 4 years ago #

    let me know if anyone find a way to do this

  4. peterchon
    Posted 4 years ago #

    Instead of the rewrite rule you tried, use this one:

    RewriteRule ^login$ wp-login.php

  5. zakhooi
    Posted 4 years ago #

    But that rewrite rule does not prevent connections to http://www.yoursite.com/wp-admin
    That needs to be blocked as well, can that be done with .htaccess as well?

  6. sounds
    Posted 4 years ago #

    2) Change the links from wp-logins.php to /login
    in your functions.php (or someone plugin) add this filter


    Don't know if this helps, it's another step towards what you're doing.
    It didn't work for me, not sure which functions.php, i tryed two.


    Let me know if you get it to works please.

  7. sounds
    Posted 4 years ago #

  8. zakhooi
    Posted 4 years ago #

    Actually this works for me

    Again: This successfully redirects 'secure-login' to 'wp-admin' but is NOT making 'wp-admin' unavailable. The visitor STILL can go to http://www.yourwebsite.com/wp-admin directly. So it's not a real sollution

  9. zakhooi
    Posted 4 years ago #

    Wait!! I made a mistake, this actually DOES work!!

    Thanks for the hint!!!

  10. zakhooi
    Posted 4 years ago #

    Well, still there is a slight problem.
    The solution 'Sounds' mentioned works, but only if the wordpress site resides in the servers root dir. I have another site where wordpress is running in a subdir and there it doesn't work.

    What do I need to change to make it work in a subdirectory? Is it just a matter of defining the basedir or so?

  11. robzcuy
    Posted 4 years ago #

    zakhooi , can you tell me how to do that? bcoz when i try to open the url that "sounds" give it to you, its not available anymore... i use wp 3.2.1 too and want to hide my admin login page manually,without using plugin..

    previously , i hide my login page with this trick :

    - go to wp-login.php , open script
    - replace all the "wp-login.php" with "your-url.php"
    - there 19 text replaced
    - rename too file wp-login.php with your-url.php

    this trick works for me, but there's still 1 problem, i cant LOGOUT!!! >.<

    can anyone help me how to fix this "logout problem" ? thanks b4~

Topic Closed

This topic has been closed to new replies.

About this Topic