what I need to do is to rename the wp-login.php page in login.php or login and I’ve tried using .htaccess rewrite rule
Is there something else I can do to achive this?
No, wp-login.php
cannot be moved or rewritten, not without modifying WordPress core. That particular approach to this is a dead end.
But the login URL can be swapped/replaced with something that is not wp-login.php
.
The commonly accepted approach to this problem is to instead use the login_url
filter to change where WordPress thinks the login URL is and point it to a custom login page of your own creation. How that page is constructed is up to you, e.g. you could use wp_login_form()
, or construct the form yourself, or use widgets/blocks/plugins/form plugins/etc to do it. There are many ways to do this.
This does mean that you’ll need to build that custom login page, and style it, and depending on how you build it will determine how much effort is required. How you do that would make a good question on this stack, but there are already lots of questions, and even entire tags dedicated to this subject.
If you just want to see the standard login page that you get out of the box, but at a different URL, then no, WordPress provides no way to do that via configuration/code/filters.