I'm not sure I totally understand your question, but I'll tell you what works consistently for me with simplest possible set up on the server and no .htaccess or mod_rewrite complications. This just works.<br><br>I always have my Drupal root at the domain root. For example: <a href="http://www.example.com">http://www.example.com</a>.<br>
<br>If I need to put the site in a subdirectory, I will always create a sub-domain. For example, if the Drupal directory is at: <a href="http://example.com/drupal">example.com/drupal</a>, I will create a subdomain called <a href="http://drupal.example.com">drupal.example.com</a> that transforms <a href="http://example.com/drupal">example.com/drupal</a> into a domain root (<a href="http://drupal.example.com">drupal.example.com</a>). <br>
<br>One of the reasons I do this is that I find root-relative links to be the most stable for links inside text areas. So links that I create inside nodes or custom blocks to other places on the same site I'll make them root-relative which is like, "/custompath" or "/longer/custompath". <br>
<br>Note however when you are in Drupal admin screens (as opposed to a node body or custom block) you don't put the forward slash at the beginning. Drupal itself doesn't have a hard time keeping track of where its root directory is and beginning with a forward slash will not work. <br>
<br>I've had trouble with truly relative links created inside nodes, such as a link like "custompath" or "node/1". Root-relative links take the guesswork out. But the downside of root-relative is that they always go to the domain root, even if the Drupal root is in a sub-directory. And so that is why I use the subdomain trick in those situations because the sub-domain essentially changes the location of the domain root.<br>
<br>This system makes moving the site to another server, another domain, or another directory on the same server, really, really simple.<br><br>Hope this makes some sense to you.<br><br>This isn't necessarily the "best" way, it's the way I've simplified things for myself so I don't have to be too much of a server geek and I get consistent results.<br>
<br>Shai<br><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 7:41 PM, Néstor <span dir="ltr"><<a href="mailto:rotsen@gmail.com">rotsen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have create a block that has some basic html links like<br><a href="/nestor/scroller612/as_dept/as_main">Admin Services</a><br><br>This works but if I were to move my drupal site this will not work.<br>
<br>If I were to set the link as follows it will not work<br><a href="as_dept/as_main">Admin Services</a><br><br>Now what is the proper way to point to a link ina drupal page?<br><br>How do you tell it to use the drupal site path + the location of the link you want to access?<br>
<br>Thanks,<br><br>Nestor :-)<br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br>