How to change “wp-admin” to something else without search-replacing the core?

for example: foobar.com/wp/edit instead of foobar.com/wp/wp-admin

How would I do that?

I’ve tried using this in htaccess but it won’t work:

##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS
##### Admin Base Rewrite #####
RewriteCond %{REQUEST_URI} wp-admin/
RewriteCond %{QUERY_STRING} !sercretword
RewriteRule .*\.php [F,L]
RewriteCond %{QUERY_STRING} !secretword
RewriteRule ^secret_room/(.*) wp-admin/$1?%{QUERY_STRING}&secretword [L]
##### End Admin Base Rewrite #####
##### BELOW THIS POINT IS ALREADY INSERTED BY WORD PRESS

It was created by Michi Kono. I just can’t get it to work though.

I’m not trying to be more secure by obscurity… Its more for functionality. My site will be world editable (kind of like a wiki) but only for registered users. They will go to “/edit” instead of “/wp-admin” to edit or add content.

Thanks for the help!

NOTE: I did see this question: Can I rename the wp-admin folder?
But that doesn’t have an answer.

NOTE: Stealth Admin plugin doesn’t seem to do the trick either.

NOTE: I tried this solution: How to redirect/rewrite all /wp-login requests
But I’m not sure where in the htaccess file to place the rewrite rule with respect to the wordpress rules.

3 Answers
3

You can try the Redirection plugin, it’s great for exactly that.

EDIT

You could also for example setup a subdomain that makes a transparent redirect, as in : http://admin.mywebsite.com/ which you would redirect to your wp-admin/ folder. But then I think people would still see the wp-admin/ in all the links (on hover for ex).

Leave a Comment