• Hi there,
    I was wondering if it is possible to rename the wp-admin foplder to something a little less obvious in my setup. I tried just renaming it, but it didn’t work.
    Anyone got any suggestions (that dont involve mod_rewrite)>
    thanks in advance.
    CJ

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yout setup is completely fine, so there’s no real need for any renaming to happen.
    It won’t work as simply as that because that direcory is called many times from many files, so you would have to find each and every occurrence of it, and rename it.
    Far more work than it’s worth to be honest ??

    its like renaming the windows folder after you have installed windows.

    You could probably put an $admin_path variable in the config file, and then do a search and replace to put that var in wherever /wp-admin/ appears. It wouldn’t be too hard. In fact, that might be a good feature request, sort of a core change to allow manual configuration of the admin folder name.
    peace,
    sam

    Thread Starter chillijam

    (@chillijam)

    I did a dummy run last night using an unfortunatley names tool – “fart” – to Find And Replace Text in all the files.
    It seemed to work a treat. I will reinstall my testbed and try write a script (bash, probably) to rename the folder, rename the files (maybe?) and replace all references. If anyone is interested, I’ll make it available.

    Hi,

    I have created a script which can help you rename your wp-admin folder. Find all the relevant details on this blog post.

    I would like to add that it’s not a quick and dirty hack. I have added record in wp_options table with option named ‘admin_folder’ and I am using it in all the scripts which references ‘wp_admin’ folder. I am using standard function ‘get_settings()’ to find the value of ‘admin_folder’.

    JD

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Renaming wp-admin folder’ is closed to new replies.