ajwillia-ms pushed a commit to branch master.


commit 6d84a2f0e99d6cc7f09a537643374c2364a7847b
Author: Andy Williams <a...@andywilliams.me>
Date:   Thu Apr 30 22:24:59 2015 +0100

    www: Support subdir local mounting
    Makes testing a lot easier without virtual hosts or a
    dedicated web server configuration...
 README                         |  4 ++++
 public_html/lib/tpl/e/nav.html | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/README b/README
index b448fa7..036d35f 100644
--- a/README
+++ b/README
@@ -23,6 +23,10 @@ www-content dir from the public_html/data dir like:
   ln -s /path/to/www-content public_html/data/www-content
 as an alternative.
+If you want to load the website at a subdirectory you can add the config
+option as follows to the local.php file you just created:
+$conf['basedir'] = '/subdir';
 The first time you run your local webserver and go there, you may get
 permission denied problems. You may have to either make your www tree
diff --git a/public_html/lib/tpl/e/nav.html b/public_html/lib/tpl/e/nav.html
index b6f941d..37e5c74 100644
--- a/public_html/lib/tpl/e/nav.html
+++ b/public_html/lib/tpl/e/nav.html
@@ -1,8 +1,8 @@
-<li><a href="/start">Main</a></li>
-<li><a href="/about">About</a></li>
-<li><a href="/download">Download</a></li>
-<li><a href="/contact">Contact</a></li>
-<li><a href="/docs">Docs</a></li>
+<li><a href="<?= wl('start') ?>">Main</a></li>
+<li><a href="<?= wl('about') ?>">About</a></li>
+<li><a href="<?= wl('download') ?>">Download</a></li>
+<li><a href="<?= wl('contact') ?>">Contact</a></li>
+<li><a href="<?= wl('docs') ?>">Docs</a></li>
 <li><a href="https://phab.enlightenment.org/phame/live/3";>News</a></li>
 <li><a href="https://phab.enlightenment.org/phame/live/1";>Blog</a></li>
 <li><a href="https://phab.enlightenment.org/";>Devel</a></li>


Reply via email to