• Hi , i wanted to change wp-login.php to login.
    I have successfully change wp-login.php to login , so therefore my site now login page is accessable from /wp-login.php and /login. How do i disable /wp-login.php or redirect /wp-login.php when user access. I only want user to access the login page from domain.com/login

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • This is the best plugin I’ve found for redirects.

    /login is default wp behaviour, as an FYI — it goes to your login page

    /login /admin were configured a while ago as default WP behaviour.

    (Unsure how to handle your request directly, just wanted you to know that WP had recently been configured by default to handle it)

    Thread Starter hiboy

    (@hiboy)

    Firstly, thank you for your reply.

    @rocketman7k, hmm that isnt what i wanted. I wanted to disable /wp-login.php so user login from domain.com/login

    @rev voodoo
    i tried accessing my website domain.com/login without doing anything, but it just redirect to the homepage. Therefore i have editted the .htacess, so now domain.com/login is the login page, but how do i disable or redirect /wp-login.php to /login?

    I’m not sure that’s going to work. /wp-admin, /login, /dashboard, /admin,
    by default, all redirect to /wp-login.php

    So you can see the issues that might arise if you redirect /wp-login.php to /login. I would guess that it might at least result in your browser making a request that can’t be completed. Is it possible that doing that could setup a redirect loop?

    Here is a plugin for that, but unfortunately users say its broken. ??

    Rereading your question, I must tell you that what you did is already done by default.
    This may help you.

    Thread Starter hiboy

    (@hiboy)

    hi all, thank you for your reply.

    I think i am facing a deep trouble now.

    @marikamitsos the plugin couldnt work. /wp-login.php redirect to the homepage, that a good thing. But /login also redirect to the home page

    After trying, my website to login the url seem to be mess up…

    hmm, does anyone know how to hide wp-login.php by hardcoding the function.php?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to redirect wp-login.php?’ is closed to new replies.