Controlling File Paths Outside
-
I have the following set up
/home/userid8/public_html/alpha/<wordpress files>
/home/userid8/wpfm/<directories and files> (note, not under WordPress or public_html)FMA Config:
Public Root Path:
/home3/userid8/public_html/alpha/Files URL:
https://www.mywebsite.com/wpfilesHide File Path on Preview: Checked
and my shortcode is:
[file_manager_advanced login=”yes” roles=”administrator” path_type=”outside” path=”/home3/userid8/wpfm/records/” operations=”mkdir,mkfile,rename,rm,search,upload,download” view=”list” theme=”light” lang =”en”]OK, so my files are not in the wordpress structure. My site is configured (outside of file manager using dl-file.php) so that a request to
https://alpha.mywebsite.com/wpfiles/records/<filename> works (note not https://alpha.mywebsite.com/wpfm/records/<filename> )FMA directly works fine to view and browse the files.
However, when I actually try to open a file in FMA
(located in /home3/userid8/wpfm/records/file.pdf)I get a 404 from wordpress, and the URL IS:
https://www.website.com/home3/userid8/wpfm/records/file.pdf?_t=1598209440I have “outside” configured, but of course wordpress (and the web server) can’t natively access files “outside” (that being the point).
So the URL shouldn’t have in it:
/home3/userid8/wpfm/records/file.pdf but should instead be
/wpfiles/records/file.pdf?_t=1598209440Isn’t that the point of the “Outside” config and the Files URL setting?
- The topic ‘Controlling File Paths Outside’ is closed to new replies.