Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
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

1 Answer 1

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

 
discard

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.