Ever wondered how to change the default /wp-login.php login address for WordPress? In todays quick tip I will show you just how easy it is!

This tip is aimed at people who are running WordPress on Apache web servers.

To do this we simply have to create a rewrite rule in your websites .htaccess file, there will be one setup by default when you install WordPress.

Open your .htaccess file and it will look something like this:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

WordPress automatically creates a load of rules when you install it, all we need to do is add a new rule to the above:

RewriteRule ^admin$ wp-login.php

Put simply, anybody who calls /admin on your website will be shown the wp-login.php file. If you don’t want to use the term admin, maybe manage or just login simply change the word admin above.

This line needs to sit under RewriteBase / like so:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^admin$ wp-login.php
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress