WordPress hack: .htaccess rewrite for login URL

By adding just one line of code to your .htaccess file you can easily change your wordpress login from yourdomain.com/wp-login.php to yourdomain.com/login/ which is much easier to remember and type (also for customers it’s easier to explain to them).

Don’t forget to backup your .htaccess file before making changes to it.

RewriteRule ^login$ http://website.com/wp-login.php [NC,L]

(Remember to change http://website.com to be your website address)

Leave a Reply

Your email address will not be published. Required fields are marked *