Sometimes I find it pretty hard to type my WordPress Admin URL… you know “http://blogaddress.com/wp-admin.php” or “http://blogaddress.com/wp-admin/“… that’s too many dashes, points and slashes for my taste :-D.
If your server supports mod_rewrite (most servers do), you can shorten your login URL to just “login” by adding this rewrite directive to the .htaccess file in your blog directory:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^login$ /wp-login.php [L] </IfModule>
But wait, if your blog’s permalink structure is set to “pretty” permalinks, then, your .htaccess file has some rewrite rules already, in that case just add the RewriteRule directive right after the “RewriteBase /”. Like this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^login$ /wp-login.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Make sure you save a back-up copy of the original .htaccess file (if there was one) before making these changes. You can never be too careful.
Also, make sure there isn’t a “login” directory.
Not only for WP bloggers but for all PHP developer, thanks for it