-
☆ A M B ☆
- 298 Posts
I have my localhost WAMP setup like this: C:\wamp\www\sitefolder (I want the new media source to be located at C:\newMediaSource)
and online host linu/apache setup like this: home/hostaccountusername/public_html/sitefolder (the account hosts several sites. so each is placed in a folder. I want the new media source to be located at home/hostaccountusername/newMediaSource)
In both instance what will BasePath URL web root setting be?
I know ../ takes you one level up the folder structure but how do you set this?
-
☆ A M B ☆
- 24,524 Posts
If this is outside of the web root, then no URL will make any sense, since you can't access files outside of the web root with a URL. The Base Path should be the full path to the directory you want to use, and its "Relative" should be set to No.
Old thread. FWIW here is a simple snippet to output text files stored in core/share/ above root:
[[getProtectedFile?name=`securitytest.txt`]]
<?php
include $modx->getOption('core_path').'share/'.$name;