Home › Forums › WordPress Plugins › Hide My WP › How to redirect to login page when i activated "Hide Admin"?
Tagged: redirect
- This topic has 5 replies, 2 voices, and was last updated 6 years, 4 months ago by
Suman M..
-
AuthorPosts
-
June 24, 2019 at 6:39 pm #26656
Hello, i want some request.
i activated and set:
1. Hide Admin – Hide wp-admin folder and its files for untrusted users.
2. Trusted User Roles (Author, Editor, Contributor)
3. New wp-admin Path* (backend)This make user not logged in when access https://domain.com/backend its displaying 404 page.
So, i want to change to when user not logged in access https://domain.com/backend its redirect to login page not 404 page.its possible? if yes, how to make it?
thankyou, and sorry for bad english.June 25, 2019 at 7:29 am #26669Hi, is it that you are not able to login to site’s backend after you have renamed wp-admin path name? Let us know!
June 25, 2019 at 11:44 am #26680hi, i still can access wp-admin (dashboard)
current logic
– Author (user) not logged-in acces https://domain.com/wp-admin (in my case https://domain.com/backend) displaying 404 page
– Author (user) logged-in access https://domain.com/wp-admin (in my case https://domain.com/backend) displaying wp-admin dashboardthe logic that I want
“if Author (user) not logged-in and access https://domain.com/wp-admin (in my case https://domain.com/backend) then redirect to login page”
“if Author (user) logged in and access https://domain.com/wp-admin (in my case https://domain.com/backend) then displaying wp-admin dashboard”this is very difficult to explain, lol
I hope you understand 😀June 25, 2019 at 5:58 pm #26686Hi, I understood your requirement. But this would only be possible if you disable “Hide Admin” option in General Settings tab.
June 27, 2019 at 9:54 am #26723hi.
when i disable “Hide Admin”in General Setting
its only redirect from https://domain.com/wp-admin to login page
not from https://domain.com/backend to login pagewhen access domain.com/backend still redirect to 404 page
any idea?-
This reply was modified 6 years, 4 months ago by
kingeroox.
June 27, 2019 at 4:01 pm #26728Is “/backend” the new wp-admin path you renamed in HMWP plugin? Or is it new wp-login.php path name you renamed in HMWP?
Also, please generate debug report from HMWP start tab and post it here as private reply. Thanks!-
This reply was modified 6 years, 4 months ago by
Suman M..
-
This reply was modified 6 years, 4 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.

