WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to change the login URL per a client request.

so, instead of mysite.com/wp-login.php

or mysite.com/wp-admin

it is this: mysite.com/someotherpagename.php
or mysite.com/someotherpagename

I do not want to use /login. It's too obvious, per the client.

Thanks in advance.

share|improve this question
Security by obscurity is not security. Changing the login path won't make things safer, just harder to maintain in the future. – EAMann Jan 30 '13 at 3:11
If it stops thousands of bots finding your site and doing a DOS attack it is a level of security. – Sam Nov 4 '13 at 12:55

Open your .htaccess file and add Rewrite Rules:

RewriteRule ^myregister/?$ /wp-login.php?action=register [QSA,L]
RewriteRule ^mylogin/?$ /wp-login.php [QSA,L]

If your wordpress installed in a subdirectory:

RewriteRule ^myregister/?$ /subdirectory/wp-login.php?action=register [QSA,L]
RewriteRule ^mylogin/?$ /subdirectory/wp-login.php [QSA,L]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.