I made changes in .htaccess as below and it worked
# BEGIN iThemes Security – Do not modify or remove this line
# iThemes Security Config Details: 2
# Enable the hide backend feature – Security > Settings > Hide Login Area > Hide Backend
RewriteRule ^(/)?secretlogin/?$ /wp-login.php [QSA,L]
RewriteRule ^(/)?/?$ /wplogin [F]
RewriteRule ^wp-login\.php$ [QSA,L]
RewriteRule ^wp-login /404.php [F]
# END iThemes Security – Do not modify or remove this line
Edit: 404.php is “Error 404 – Page not found”, the page of my theme.