• Resolved rcb-it-solutions-1

    (@rcb-it-solutions-1)


    I know it is possible to rename wp-admin but requires so many modifications of calls to it its not a realistic option.

    I want to use rewrite rules to make say /dashboard goto the wp-admin directory without the user knowing on the server it’s actually called wp-admin. But I am not much for knowing .htaccess stuff and would like some help if someone has a rewrite rule I could use for this.

    ie the user would goto mywpinstall.com/dashboard and really be acessing mywpinstall.com/wp-admin without knowing it. I know this negates a reason many of the posts here ask about renaming the directory, which is security though obscurity, but all I am looking to do it customize the experience for the wp users.

    EDIT: I have attempted to do it, but I am clearly doing it wrong because it is not working, my .htaccess code:

    RewriteEngine on
    RewriteRule ^dashboard/ /wp-admin/ [NC]
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter rcb-it-solutions-1

    (@rcb-it-solutions-1)

    I got the rewrite code

    RewriteEngine on
    RewriteRule ^dashboard(.*)$ wp-admin$1 [L,NC]

    However, the admin links still use wp-admin and I can’t see where to change that, it appeared to use relative links in menu.php so I have no idea on this one.

    Also, I get a login screen when I access a page such as /dashboard/post-new.php but my wp-config has no COOKIE_PATH, my config is posted at http://pastebin.com/d73e87257

    Thread Starter rcb-it-solutions-1

    (@rcb-it-solutions-1)

    ok so this has finally caused me so many problems trying my method, I found a program called Simple Search-Replace to replace hard-coded wp-admin entries.

    In the future I’d plead the devs to make the admin directory something that is easy to change.

    EDIT: Well this has mostly fixed my problems, I just got one small issue, the dashboard on the admin panel isn’t displaying quite correctly but for the most part everything is fine. The login works, everything is working fine right now aside from that.

    Thread Starter rcb-it-solutions-1

    (@rcb-it-solutions-1)

    The dashboard display issue was due to the fact that I renamed wp-admin to dashboard so that caused some collision in the code. I tried again renaming it instead to backend and all is good.

    So how did this endup for you?

    Is there a way to change /wp-admin without creating a mess?

    @ john25, no there isnt, you would have to edit all the files… 🙁

    Too bad. For security reasons it would be good if you could rename it. Perhaps something for wordpress 3.0 😉

    Here’s an excellent article that hides wp-admin using the rewrite engine:

    http://www.michiknows.com/2007/02/12/who-else-wants-to-hide-their-wordpress-admin-folder/

    Here is another link to a site with a quick tutorial about how to change wp-admin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Rename wp-admin without renaming it (.htaccess rewrite)’ is closed to new replies.