Public root path
-
Using WP File Manager Pro 5.5 on WordPress 5.3.2
My base assumption here is that if I have files stored in WP File Manager Pro that are in the path of the website, they’re accessible to anyone that knows the file name. So I don’t want them under public_html.
So I have changed the Public Root Path (/admin.php?page=wp_file_manager_root) to be /home/ricks03/wpfm instead of the default of “/home/ricks03/public_html/”
That works from a WPFM file access perspective. WPFM lets me browse the files in the folders, with me able to control access by role.
Now I’d like to be able to create a URL to one of those files. If I select document.pdf in WPFM and select the Share option, I get a link of : https://mydomain.org/document.pdf
That link doesn’t work (unsurprisingly). What would be the correct URL to access the file?
I’m trying to replicate functionality I had under Drupal with the webfm module. Under webfm, the url for that file would be https://mydomain.org/webfm/document.pdf. Webfm would then control access to that file based on the configuration. That way the files on the file manager were:in the file manager; not accessible if you had no user ID but knew the URL, from a https: URL
Thanks!
- The topic ‘Public root path’ is closed to new replies.