Hi,
I found these solutions:
First solution:
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^/?author=([0-9]*)
RewriteRule ^(.*)$ https://www.wordpressexample.com/some-real-dir/ [L,R=301]
source: https://www.question-defense.com/2012/03/20/block-wordpress-user-enumeration-secure-wordpress-against-hacking
but i have troubles with the redirect… it always include the /?author=1 string… so if i specify my home page it generates an infinite redirect!
Second solution:
Specify a redirect 301 in the htaccess. ex: /author/name /
it works but the redirect is not instantaneous and it shows the url before to redirect it…
third solution:
use RewriteRule for to make a redirect
but I’m not sure how to write it… i tried smth like:
RewriteRule /author/name /