Change wp-admin folder name

There are 2 way that i just find on the internet to change wordpress folder name that has been hard coded

WordPress is great! It’s no doubt. But unfortunetally 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 occured 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 softweare called “grepWin” (Download). After installing this software right click on your wordpress folder and then choose “grepWin…”

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 winGrep and change every “wp-admin” to your choosen directory name.
taken from http://wp123.info/modifications/change-wp-admin-folder-name/

or the one that i already try

If you’ve been working with WordPress for some time and especially if you’re a WordPress developer, you should already know about the security issues this platform has.

What I want to address in this post are issues with the wp-admin folder. I have heard numerous times about blogs that have been hacked by executing files found inside wp-admin. But what can be done to slim down the chances of someone harming your WordPress installation?

One thing you could do is restrict access to the wp-admin folder by IP. But this solution is not good if you have a dynamic IP or you write your posts from different places.

Another solution is to password protect the wp-admin folder using the AskApache Password Protection Plugin. It somewhat of as good solution, but the drawback to this is that you have to type 2 usernames and passwords in order to access the Dashboard.

But the solution I opted for on necoda.com was to rename the wp-admin folder to something else, something random. If you do this you will find that your installation of WordPress will not work anymore. That is because every reference to the wp-admin folder are hard-coded into the files of your blog. What you have to do is replace every occurence of wp-admin in every file of your WordPress installation with the name you changed your wp-admin folder to. Contrary to what you may find on the web, this solution is not that hard to implement (in linux at least). Just combine the find command and the sed command and you will get one small command that will do the trick. Here it is:

find /path/to/wordpress -type f -exec sed -i ’s/wp-admin/new-name/g’ {} \;

In the command above you have to put the path to your wordpress installation folder instead of /path/to/wordpress and change new-name with the name you changed wp-admin to. What is left to do is rename the wp-admin.css file found inside your admin folder to the same name as the admin folder plus the added .css extension. The problem you will have with this solution is that you will have to apply it after every wordpress upgrade you do.

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Change wp-admin folder name

  1. Boldy says:

    Greatings, Ugh, I liked! So clear and positively.
    Boldy

  2. Its a great information that i was wondering for long time. i am going to test it soon. IF it works this would be the great post that i ever read. Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>