On the wordpress 4.5.3 site you can find out the username by guessing his ID. The link http://www.mysite.com/?author=1
shows the user name in the address bar and in the "title" tag of the page being formed. I want to close this feature with the ".htaccess" file by redirecting to the page with the error "403" I tried to write in ".htaccess":
RewriteEngine On RewriteCond %{QUERY_STRING} author=\d RewriteRule ^(.*)$ index.php [F,L]
But it does not work, tell me how to make the code correctly Or maybe there is another way to close it.