Wordpress folders outside htdocs

Hi all, hopefully this is an easy question for people in the know!
My site is working OK but I am trying to tidy up files to reduce inode usage.
I noticed that htdocs contains wp-content, wp-includes and wp-admin - and obviously that’s where they should be uploaded, so all fine.
However, there also seem to be versions of these folders at the next level up like so:
image

I have no idea how this has happened, whether it could have been a slip of the mouse or something that could have happened automatically e.g. when updating Wordpress? As clearly not supposed to upload files here.
I am hoping the former (just a mistake) and that these can safely be deleted (after a back-up of course) but would be great if an experienced person could please confirm. Many thanks!

Welcome!

Are those folder also duplicated within the htdocs folder? Because anything outside of the htdocs folder cannot be accessed by your website…

5 Likes

Hi and thanks for your reply! Sorry. yes - those folders exist within htdocs and I see that it is these which are being updated, so I assume the ones outside are a remnant of some blunder on my behalf. Possibly when I updated the domain name?
In any case this confirms that the folders outside htdocs will not impact the site so many thanks for confirming! :slight_smile:

2 Likes

Yes, anything outside of the htdocs folder will not affect your site (And especially with WP - as the file links would be broken as well).

If your website is appearing how you want it to, you can delete those folders outside of the htdocs folder. Just be sure to backup the ones that are inside the htdocs folder afterwards so you have a recent and working backup.

7 Likes

Awesome, thank you so much for your help, much appreciated!

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.