title: Allowing links to work from a root domain path and a subdomain path
body: <p>Thanks in advance for the help. </p>
  
  <p>My problem is, I'm wanting to get my navigation working the file setup through the hosting is: </p>
  
  <pre><code>/home/webhosting/public_html/dev/
  /* dev is my development folder also setup as a sub domain */
  </code></pre>
  
  <p>I want to access the links to allow www.mydomain.com/dev/login to link the login page in the dev section and same if i go 
  dev.mydomain.com/login it will take me to the same login page for the dev domain (www.mydomain.com/dev/login) without giving me errors or taking me back to the root domain (www.mydomain.com/login)</p>
  
  <p>so far i'm just using  </p>
  
  <pre><code>DEFINE('ROOT', '/home/ganderz1/public_html/hosting/shadowtech.co.nz/dev/dev4/');
  
  /* Define the Template to be used */
  DEFINE('TEMPLATE_NAME', "default");
  
  //DEFINE('ROOT', '');
  DEFINE('TEMPLATE', ROOT.'Include/Theme/'.TEMPLATE_NAME.'/Language/en/Template/Common/');
  DEFINE('HOME', ROOT);
  
  DEFINE('NAV', "http://".$_SERVER['SERVER_NAME']."/");
  </code></pre>
  
  <p>Any help would be extremely grateful and received well</p>