I want to rename the admin URL ‘wp-admin’ to e.g. ‘admin’.
I set a rewrite rule in the .htaccess to acces the admin login:
RewriteRule ^admin wp-admin [NC,L]
That works but I can still use /wp-admin.
So I have to tell WordPress that ‘admin’ is the new URL.
Can anyone help?
Solution without plugins:
Edit the .htaccess and add the code below between the IfModule mod_rewrite.c tags:
Also edit the wp-config.php and add:
Edit the functions.php file from your theme and add:
And that’s it! Enjoy
A better way would be to install the iThemes Security plugin (formerly Better WP Security).
Or follow this easy 5-step guide on changing
wp-admin
.You can use a plugin named Move Login.