Title: Controlling File Paths Outside
Last modified: August 23, 2020

---

# Controlling File Paths Outside

 *  [ricks03](https://wordpress.org/support/users/ricks03/)
 * (@ricks03)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/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/wpfiles](https://www.mywebsite.com/wpfiles)
 * Hide 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&gt](https://alpha.mywebsite.com/wpfiles/records/<filename&gt);
   works (note not [https://alpha.mywebsite.com/wpfm/records/<filename&gt](https://alpha.mywebsite.com/wpfm/records/<filename&gt);)
 * 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=1598209440](https://www.website.com/home3/userid8/wpfm/records/file.pdf?_t=1598209440)
 * I 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=1598209440
 * Isn’t that the point of the “Outside” config and the Files URL setting?

Viewing 1 replies (of 1 total)

 *  Thread Starter [ricks03](https://wordpress.org/support/users/ricks03/)
 * (@ricks03)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/controlling-file-paths-outside/#post-13301647)
 * A note:
    If I add the short code hide_paths=”yes” the URL changes to: [https://www.website.com/wp-admin/admin-ajax.php](https://www.website.com/wp-admin/admin-ajax.php)
   and the file opens.
 * That’s not horrible, but it makes it hard to have the user know what URL to use
   for their file if it’s going to be referenced anywhere else.
 * I would think the URL should include the value from the filesURL? Where/what 
   is the files URL good for otherwise?

Viewing 1 replies (of 1 total)

The topic ‘Controlling File Paths Outside’ is closed to new replies.

 * ![](https://ps.w.org/file-manager-advanced/assets/icon-128x128.png?rev=3305504)
 * [Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution](https://wordpress.org/plugins/file-manager-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/file-manager-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/file-manager-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/file-manager-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-manager-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-manager-advanced/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ricks03](https://wordpress.org/support/users/ricks03/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/controlling-file-paths-outside/#post-13301647)
 * Status: not resolved