WordPress.org

Ready to get started?Download WordPress

Forums

Renaming wp-admin folder (6 posts)

  1. chillijam
    Member
    Posted 9 years ago #

    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

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    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 :)

  3. OperaManiac
    Member
    Posted 9 years ago #

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

  4. phidauex
    Member
    Posted 9 years ago #

    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

  5. chillijam
    Member
    Posted 9 years ago #

    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.

  6. phpkid
    Member
    Posted 9 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.