• Resolved gamicord

    (@gamicord)


    Hello Sir,
    My website is a BuddyPress Community website.

    This in a way, means that few or more hundreds of people will be Logging in to Register and create Accounts on my website.

    Now, I don’t want these people to ever see the WP-Admin and the WP-Login.Php Pages.

    In short, I don’t want these my users to even know that a WP-Admin and Wp-Login.Php Page even exist.

    It should be that, even if people deliberately type “mydomain.com/wp-admin” or they deliberately type “mydomain.com/wp-login.php” , it should immediately and instantly redirect them to the Custom Login Page that I have created– and they should never see the “wp- admin and “wp-login.php” Page.

    Now, these people shouldn’t encounter a 404 Page if they deliberately type in these Admin URLs.

    Rather, I want them to be Redirected to Custom Pages that I have available on my website.

    Can this plugin achieve such function for me?

    Regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @gamicord

    I hope you’re well today!

    In “Defender” you have a “Masked Login Area” feature but it’s for a slightly different purpose. It’s not meant to set redirect from default to custom login but rather actually hide and disallow standard login.

    So if we forget for a second that you already have custom login on site, what you would do would be:

    – go to “Defender -> Tools -> Mask Login Area” page and activate the feature
    – then in “Masking URL Slug” you put some slug name (or “URL slug”) – that DOES NOT EXIST on the page – which would be your new login page.

    For example, let’s say I want my login to be at “site.com/garage”; I make sure that “garage” page doesn’t exist on site and I set “garage” as “Masking URL Slug”.

    At this point if I’ll go to “site.com/wp-admin” or “site.com/wp-login.php”, I’m greeted with error message and I need to actually know that login is at “site.com/garage”.

    But then

    – I can also enable “Redirect traffic” option and either select any existing page to redirect users to or set custom URL.

    And with this set, if I go to “site.com/wp-admin” or “site.com/wp-login.php” I will be redirected to that page/URL. The point here is to not set redirect to my masked “site.com/garage” URL as it would defy the purpose of the feature.

    But what you can try is to set it like this and in redirect set select your new custom front-end login page, while setting “Masked URL slug” to something complex and “hard to guess”.

    However, please note that “Mask Login Area” feature does attempt to detect if a given page is a login page so depending on how your custom login page works, it may also block it. It’s not a rule so you would need to test it first (if it blocks it, you can still login by via that “Masking URL slug” URL and undo the changes).

    Or you can set that redirect to point to some other custom page and just make sure that the some login button pointing to your custom page is there (e.g. in main menu). This way whoever – including bots – would attempt to go to standard login would be bounced back to some regular page. And if they’d want to login they’d just need to click on your “login” button and be taken to your custom login page – that would be the safest solution in this case.

    Kind regards,
    Adam

    Plugin Support Zafer – WPMU DEV Support

    (@wpmudevsupport15)

    Hi @gamicord,

    We haven’t heard from you in a while, we will go ahead and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind regards,
    Zafer

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect WP Admin Pages to Custom Pages’ is closed to new replies.