Masking wp-admin / wp-login with .htaccess

1

I'm trying to mask the Wordpress login URL. For example, I've been able to do the basics of making the url user-friendly:

^login /wp-login.php [L]

It turns out that I do not want to allow access by using the direct URL with www.site.com/wp-admin or www.site.com/wp-login or www.site.com/wp-login.php or www.site.com/wp-admin.php , only by the friendly URL.

Is it possible to do this?

    
asked by anonymous 30.06.2014 / 17:56

2 answers

1

Yes it is possible!

To do this, use the Hide Login+ plugin that works just for this, you can create new URLs as www.meusite.com/login and it blocks access to other URLs such as /wp-login and /wp-admin .

You can find the plugin at:

  

link

    
01.07.2014 / 05:16
0

Well, I do not know what you want to do when the user accesses one of these URLs that you do not have access to. If you want a 404, you can do so:

RewriteRule ^(.*)/wp-login\.php$  /path-da-page-404.php
    
30.06.2014 / 19:47