WordPress.org

Forums

How to redirect wp-login.php? (8 posts)

  1. hiboy
    Member
    Posted 2 years ago #

    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

  2. rocketman7k
    Member
    Posted 2 years ago #

    This is the best plugin I've found for redirects.

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    /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)

  4. hiboy
    Member
    Posted 2 years ago #

    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?

  5. ClaytonJames
    Member
    Posted 2 years ago #

    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?

  6. marikamitsos
    Member
    Posted 2 years ago #

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

  7. marikamitsos
    Member
    Posted 2 years ago #

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

  8. hiboy
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.