02 May 2011 ~ 9 Comments

How to change WordPress login URL

To log into WordPress, we use the URL http://site.com/wp-login.php for the login form. Optionally http://site.com/wp-admin also opens the same. Although the visitors to your site don’t have to deal with it, you may want to have a simpler URL like http://site.com/login or http://site.com/signin. This is basically helpful if you are working on a WordPress project for a client who doesn’t know much about WordPress. A simpler login URL would be much easier to remember. You can change the login URL of WordPress by simply adding a line to your .htaccess file.

To change the login URL, open your .htaccess file that is located at your root directory. Add the following line of code to it.

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

Make sure to add it before the line where the read/write rule is specified.

This rule doesn’t redirect your older login URL http://site.com/wp-login.php to http://site.com/login. It simply rewrites the URL. If you also want to redirect the older WordPress login URL to the new login URL, add this code instead.

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

Here we have simply added a “R” at along with NC and L; a rule that redirects the older login URL to the new one.

If you don’t want to play around with the .htaccess file, you can do this easily using Simpler Login URL plugin that was inspired by this post. Simply upload this plugin, configure a bit and you’ll get your simpler login URL working.

admin
Author: Admin
I am a technology blogger. I love to write about blogging, SEO, Wordpress, Internet, Web 2.0, Online Tools, Social Networking, Software, Gadgets and more.
Author Website:

Related Posts

  1. Redirect WordPress sitemap from non www to www version without getting stylesheet error
  2. How to change the WordPress username in Multi-Author blogs
  3. Fix custom permalinks structure in WordPress on a localhost setup
  4. Update Simple Tags plugin to fix Permalink redirect in WordPress 3.1
  5. How to remove parent category slug in Permalinks for WordPress

  • http://twitter.com/bsgies BBilal Khan

    Doesn’t work when I done everything and goes to site.com/login it says nothing found for site.com/login 404 error

  • Anonymous

    what version of WordPress are you using?

  • Mark Kitter

    RewriteRule ^login$ http://site.com/wp-login.php [NC,L]
    try this code before 
    # BEGIN WordPress

  • http://www.giavang24gio.com gia vang

    oh, it’s what I’m looking for, thanks for sharing, I’ll try it now

  • http://www.comptricks.com/ Anupal Sharma

    everything same so where we are changing ??? !!!

  • Chelo

    Hello, good advise here :)

    Quick question about the Ozh’ Simpler Login URL: Could I remove it after I set the new URL?

    THANKS in advance! :)

  • Anonymous

    removing the plugin won’t make the login url work.

  • Karissali

    I try to active the plugin, but it doesnt work for me. It did not change anything after I active it~ Mine is the wordpress 3.3.1

  • http://www.inboundmarketingexpert.org/ Inbound Marketing Expert

    Is this method really works? Should i am going to be affected inner pages…I don’t want to take risk