• I have a peculiar issue.

    The wp-content/uploads/woocommerce_uploads folder should have an .htaccess file with the contents Deny from all so as to prevent downloading of digital sales content.

    Mine was never there so I created one.

    Everytime I upload it, after several hours, it disappears. I assume it is being deleted. Yes, my FTP client is set to display invisible files and it isn’t there.

    I don’t see why my server or host would do such a thing. Am I missing something here?

    Thanks,
    -Richard

    https://www.ads-software.com/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rich95

    (@rich95)

    I just realized that setting WooCommerce in the Downloadable Products section to Redirect Only doesn’t protect the URL and will delete any .htaccess in that folder but using Forced Downloads or X-SendFile will, and will create the required .htaccess in that folder.

    Any suggestions on which to use?

    Thanks,
    -Richard

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Redirect Only needs to delete it to make the files accessible directly.

    The other methods can serve the file even if protected with htaccess. I’d use those where possible. X-SendFile is the ‘best’ but doesn’t work on all servers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess disappears’ is closed to new replies.