WordPress.org

Ready to get started?Download WordPress

Forums

How To rename or move wp-admin, wp-content, wp-includes etc. (3 posts)

  1. Rusty8
    Member
    Posted 2 years ago #

    I have been looking for a way to change my "wp-content" folder to another name or move it entirely and not getting any where, at least not without having to manually search through every file and directory within my WordPress site.
    It then dawned on me that Notepad++ (my weapon of choice) has a search and replace function, i tried it and it worked perfectly in just a few seconds.

    instructions for how i did it:
    1) either have your entire site on your localhost (your pc) or have the site accessible on your network(i haven't tried FTP Yet)
    2) crack open notepad++ and press Ctrl+F the find window opens, there are 4 tabs and you want the 3rd labelled "Find in Files"
    3) enter the info you want to change eg,
    Find what: wp-content
    Replace with: resources
    Filter: *.* (this means all files be it .js, .php, .html)
    Directory:YOUR FILE DIRECTORY (eg. C:\wamp\www\wordpress)
    and also check "in all sub-folders" and "in hidden folders"
    Normal search mode should be fine and then click "Replace in files.

    This should take a few seconds even for a large site and then that's it.
    then rename your wp-content folder to your chosen name and you will be done.

    i've tested a few plugin's and themes, they have automatically worked without any further tampering, i have not tried to update after doing this yet so i cant say whether it will make a difference.

    i hope this helps anyone trying to do this.

  2. neosin
    Member
    Posted 1 year ago #

  3. acersyn
    Member
    Posted 1 year ago #

    link erorr not found

Topic Closed

This topic has been closed to new replies.

About this Topic