Home / htaccess / htaccess for a better wordpress login URL
  • How to htaccess for a better wordpress login URL

    htaccess for a better login url

    Adding this rewrite rule to your .htaccess file in the root directory of your wordpress install will change your login url from www.wpsnipp.com/wp-login.php to www.wpsnipp.com/login/ This is also a great snippet to simplify things for your clients. I have found many continue to forget the /wp-login.php url of the wordpress login screen.

    ( click code to copy )

    wordpress snippet : .HTACCESS

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

    ( WordPress codex functions, hooks, in this snippet. )

    wp,