WordPress.org

Ready to get started?Download WordPress

Forums

Security - storing uploads outside web root (2 posts)

  1. ururk
    Member
    Posted 5 years ago #

    Does WordPress (out of the box) have the ability to store uploads outside the root directory? I made the following settings:

    Store uploads in this folder: - /absolute/path/to/uploads/outside/web/root
    Full URL path to files: http://www.example.com/images

    I then had to create a php script to read files out of the /absolute/path/to/uploads/outside/web/root directory and an htaccess rule to handle the full path (since it is a non-existent folder).

    However... I don't like this solution... any ideas? Everything is working... but since WP gives the ability to set different locations, I figured it should have the ability to read the files from the upload folder.

  2. Inogo
    Member
    Posted 4 years ago #

    Did you find a better solution to this? If not, can you show how you did it in more detail? :)

Topic Closed

This topic has been closed to new replies.

About this Topic