WordPress: Change wp-admin folder name

Compiled from http://wp123.info

WordPress is great! It’s no doubt. But unfortunately it still doesn’t have many quite necessary features. One of them is the ability to change wp-admin folder name, which is the admin directory as you probably already now. After searching for several hours on the internet without any success I started thinking of ways how to change my wordpress admin directory name. In this small tutorial I’ll show how to do it. Before starting the tutorial I have to say that this is rather complicated way and there may occurred some bugs. Anyway I have tested it and didn’t found any. So let’s start.

All we have to do is to search “wp-admin” in all wordpress files and change it to what we need to use as a admin directory name. Let’s name it for example “profile”. There are over 50 files to change. It’s practically impossible to find all these files manually so we need this great software called “grepWin” (Download). After installing this software right click on your wordpress folder and then choose “grepWin…” (see image below)

wpadmin

Then type “wp-admin” in “Search for:” box and “profile” (or anything you wish) in “Replace with:” and click “Replace”. This software will find every “wp-admin” and replace it with “profile”.

Now we are almost done. There is one file in /wp-admin/ directory called wp-admin.css. You have to change it’s name to “profile.css” (your_admin_directory_name.css).

Please note that some plugins and themes may also use the “wp-admin” name somewhere, so before you upload any theme or plugin don’t forget to scan it using grepWin and change every “wp-admin” to your chosen directory name.

 

DISCLAIMER: THIS IS NOT ADVISABLE IF YOU ARE PLANNING TO UPDATE YOUR WORDPRESS SITES REGULARLY. Please back up your files

Facebook Comments

45 Responses to “WordPress: Change wp-admin folder name”

  1. nphp101 says:

    I guess, this is not a wise move to change the hardcode of wordpress. What if, theres a new version of it and I/we want to update. This kind of technique will not sabotage the updating? just curios. But worth trying though… peace!

  2. Yeah. your are right. the updates for wordpress will not cover on these changes. and does not guarantee 100% accuracy..

  3. pRieStaKoS says:

    Change ‘wp-admin.dev.css’ too.

  4. Ashok Yadav says:

    Its very pretty post .
    My bos told me to change the wp-admin folder to another but i din’t find the solution anywhere else after that i have come over here & got the solution .

    Thank Rocky

  5. pinoypads says:

    very nice you find a way to change the wp-admin folder name, if you know what you are doing on the codes I’m sure you know you will have to make another changes once you update the wordpress script or once you add new themes.

  6. […] Đổi tên thư mục “wp-admin” thành tên khác, “longlonglonglongwpadmin” chẳng hạn. Sau đó tìm tất cả những cụm từ nào là “wp-admin” trong tất cả các file .php, .css,… trong tất cả các thư mục và đều đổi thành “longlonglongwpadmin”. Nhưng tự làm hết thì quả là công phu, may mắn là có 1 phần mềm giúp ta làm việc này… Xem chi tiết tại rockyrasonable.com/…change-wp-admin-folder-name. […]

  7. Paul says:

    Thanks for the name of prorgama. I do not remember this name. The best for these purposes!

  8. You are welcome Ashok Yadav!!!

  9. масла says:

    very nice tools, ..thanks for share

  10. And I saw that this solution isn’t so good cause when surfing to wp-admin you are redirected to wp-login.php so You have to rename that file also.. But I think with grepwin you can change all the instanced where that filename occur also.. I’ll try it..

    So TO DO for the developer community A WAY TO EASILY CHANGE THE WP-ADMIN FOLDER AND THE WP-LOGIN.PHP DYNAMICALLY so it will remain changed even after updating wordpress.

    /kindly Andreas

  11. That is cool that people are able to take the home loans and this opens up completely new chances.

  12. Tom says:

    Workable solution, thanks!

    Don’t forget to change the names of all css files with wp-admin in them to your new name. They can be found in newname/css .

    Let’s hope wordpress will make this easier in the future..

  13. Gumz says:

    what happens when there is new upgrade?

  14. It would not complicate to the changes

  15. amy says:

    grepwin is only available for windows — do you have an alternative for Mac users?

  16. […] to set. But if you insists and have the guts to play around with WordPress Core system, fine. Check Rockyrasonable wingrep here, WordPress discussion here, or an Old stealth login plugin here (very old, not working on WP ver. […]

  17. Streambox says:

    Thank you a lot… Very nice Solution.

    Greetz

  18. vitor says:

    Serious enthusiast on this website, quite a few your articles or blog posts have truly helped me out. Looking towards improvements!

  19. Jim says:

    You can do the same with Dreamweaver, both Windows and Mac versions, on local WordPress files, then install on your server

  20. Webmaster says:

    A very bad advice.

    As soon as you update wordpress to a new version, you’ll be screwed.

    Do not do this.

  21. Yes.. This is only applicable to those who doesn’t want to update and have hacked free wp sites

  22. sachin says:

    Really u r doing great job…. Thank u so much for the help……. and ALL THE BEST
    Keep it up!

  23. Amy asked, on May 22, 2011, if there was an alternative for GrepWin for Mac.

    The truth is, GrepWin is the Windows GUI alternative to a unix command called “grep”. You type it into a terminal window. They call this “command line” entry. “grep” has been around for a long, long time on unix systems, and Mac is a unix system, so I’m sure it is installed by default on every Mac system. I run Linux. Linux is the open-source operating system, much like WordPress is the open-source blog template. Thanks to Open-Source, I haven’t paid for any software in over five years, including all my business software and web-site design.

    “grep” has to be entered as a text string, so you have to read up on what you need to type to get the results you are looking for. “grep” can be used show which files contain certain words, or even replace the words with other words. It is a very powerful tool, and if you learn the command line version, you can usually do more with it than you can with a window GUI, because then you can nest grep within other commands, and multiply the things you can do with it.

  24. b xvfb cb says:

    Akron, NY LVD Strippit introduces Sirius, an automation ready flying optics laser cutting system. Sirius is designed to provide efficient processing of parts at optimal speeds and accelerations to suit the part geometry, offering reliable cutting performance at an affordable price performance ratio. Vertical Lathe is offered in a standard and a Plus model. The Sirius Plus is optimized with additional features and automation capabilities. Sirius is designed with a modular construction, permitting the user to select the configuration that works best for the application and budget. As a standard unit, the laser cutting system features 3 m by 1. 5 m integrated shuttle tables, which maximize uptime by allowing one table to be loaded while the machine is cutting on the other table. Table change time is a mere 25 seconds. Sirius Plus is engineered as automation ready and can be expanded with the addition of various components to form an automated load unload system. An optional compact tower system creates a productive, flexible manufacturing cell that can be operated “lights out. “The Drilling machine, working in concert with the material handling unit, provides full capabilities for loading and unloading, and includes a shelving unit for storing raw material and finished parts. Sirius is equipped with a laser cutting head that accommodates a 5 inch or 7. 5 inch quick change lens for fast changeover and minimal set up. These water cooled quick change lenses can be exchanged very easily, using a self centering system. Lens calibration is programmable and quick to achieve.

  25. Howdy my first occasion here, nevertheless I will have to tell you that you put forth quite a few extremely good points, helping to make for a surprisingly interesting topic, particularly with some of the feedback giving me lots more to take into consideration about this subject.

    Thanks a lot.

  26. bdques says:

    Thanks man! Really nice post. This topics will help all WP developer to hide wp-admin folder which is very essential for security.

    Thanks again.
    Alin Boby
    bdques.com

  27. gamito says:

    It wont be better to do a overwrite on .httaccess file? i dont now how because i am learning but it mus be a way to change this like that i guess, that way you dont have to manualy do it.

    is my opinion.

  28. Hallo, vielen angesichts f�r die Info ich werde f�r ihrem Flusskreuzfahrtschiff bereits wohl ein paarmal vorbei ansehen.

  29. yeah it worked

    But after updating wordpress version many errors occured

  30. rel says:

    Hi,

    No offense, but this has got to be one of the dumbest “fix” I’ve ever seen for this problem. _EVER_.

    Not only is this workaround inelegant (not to mention having to download and install grepWin), this will break wordpress updates and plugins.

    I’m sorry, I’m a filipino web developer, too, and I’m all for pinoy power but you’ve got to think about these posts before letting it out to the world.

    We have an image to protect too.

  31. khan says:

    i have change all wordpress all wp- files change it good …

  32. Helal says:

    Very Fine. I use it…

  33. Hi, its all about what you prefer to do. If your site or blog is running fine, without the need of updating, may be for security you could change everything which contains wp-admin ==> yours-admin. But if you want to have updates, then you should install locally wordpress with the original wordpress install, the only way to get updates. Next to that you should have the ‘live’ site synchronized with dreamweaver on your local server. So every time wordpress has a update, you should change all the ‘wp-admin’ of all updated files and upload them with dreamweaver, wether its a plugin or theme or the wordpress install. It gets more difficult with plugins which are used for comment spam or plugins with autoposting to facebook….. can get very complex….
    First you could start with changing the table wp-prefix, in the database. For security reasons, that should be sufficient to have your tables protected. Dont forget to change the prefix in wp-config.php also. Its something like an extra password, just make a complex one….
    here is a good link:
    http://tdot-blog.com/wordpress/6-simple-steps-to-change-your-table-prefix-in-wordpress

    wordpress is awesome

  34. But be very carefull what you do and what versions u use for wordpress, updating is not simple…
    import and export xml next to the backups also….

  35. Ahaa, its fastidious conversation concerning this paragraph here at this webpage,
    I have read all that, so now me also commenting here.

  36. WP_User says:

    Hi Sir Rocky, salamat po sa post at ittry ko po ito.. Ask ko lang po kung pede din palitan yung name ng URL ng mga woocommerce pages? Tulad po ng sa Report page ng Woocommerce, yung URL po nung sa site ko ay http://maridespolycraft.com/wp-admin/admin.php?page=woocommerce_reports, gusto ko po kasing palitan yung word na “woocoomerce_reports” sa reports lang, basta po di makikita yung “woocommerce”

  37. The subsequent time I learn a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, however I really thought youd have something fascinating to say. All I hear is a bunch of whining about something that you would repair in case you werent too busy searching for attention.

  38. ygumjarasx says:

    couts http://viagraprixenligne.com#315 – viagra cout en ligne pas cher http://viagrasildenafilprix.com#1346 – viagra sildenafil En ligne Viagra en ligne pas cher http://viagrageneriqueprix.com#067 – viagra nom de marque generique Ayant douce peau pâle a été considéré comme un signe de beauté, depuis le début des temps http://levitra-generique.eu#645 – levitra prix Prix pour

  39. web page says:

    Oh my goodness! Incredible article dude! Thank you, However
    I am experiencing difficulties with your RSS.
    I don’t understand why I cannot subscribe to it. Is there anybody having similar RSS problems? Anybody who knows the answer can you kindly respond? Thanx!!

  40. I simply couldn’t depart your website before suggesting that I extremely loved the usual information a person supply on your guests? Is going to be back continuously in order to investigate cross-check new posts

  41. Rahul says:

    Hi..

    I want to change wp-admin to other name by htaccess.

    Thanks

  42. usda loans says:

    My brother suggested I might like this web site. He was
    totally right. This post actually made my day. You cann’t imagine just how much time I had spent for this
    info! Thanks!

  43. box.com says:

    all the time i used to read smaller content that also clear their motive, and that is also happening with this article whicch I am reading now.

  44. Thank you for the auspicious writeup. It actually was once a entertainment account
    it. Glance complex to more introduced agreeable from you!
    By the way, how can we communicate?

Leave a Reply


Related Posts