• Resolved RezaY

    (@mohammad983)


    Hi guys
    I want to change wp-login.php to myname(for example).
    Which kind of rule should I use?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’m not sure that would work but change how? Do you want a 301 redirect or a rewrite?

    Thread Starter RezaY

    (@mohammad983)

    I dont know!
    I just want to change my wp-login to something else to more security.
    I have read somewhere
    RewriteRule ^login$ https://yoursite.com/wp-login.php [NC,L] works.but my web server is Ngnix and I cant use it.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Reads. Looks. Cringes.*

    There’s a couple of things here.

    First item: I am running nginx (because all the cool kids are) and when I visit https://my-url-here/login/ I get 301 redirected to this URL https://my-url-here/wp-login.php

    WordPress does that out of the box provide you have pretty permalinks correctly set up. I don’t know when that was added but it’s been that way for a while.

    How have you configured your nginx to handle URLs?

    The second thing is this: that’s not related to security in any way. The security is in the PHP code and renaming or relocating your login doesn’t really do anything. If you have strong passwords then the login attempts may be resource heavy but they’re not getting in.

    If you really want to make your login more secure then consider adding two factor authentication.

    I personally use this one https://www.ads-software.com/plugins/two-factor/ but there are others.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change /wp-login.php in Ngnix’ is closed to new replies.