How to make the error 404 appear when entering the site / wp-admin address?
I tried to do this:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ RewriteCond %{REMOTE_ADDR} !^192\.168\.28\.5$ RewriteRule ^(.*)$ - [R=403,L] </IfModule>
It is necessary to give a 404 error, and to display a 404 error generated by wordpress. (if you use the example I wrote above, it ignores all “get_header, get_sidebar” inserts and so on).
It is impossible for the address bar to change in the address bar (for example: site / 404.php). It should be like with standard wordpress work.