How can I adjust Drupal links on shared hosting so that they don't point at the root? I have installed Drupal on shared hosting. Drupal is installed in the public_html folder of an Apache user directory (UserDir). Unfortunately, I notice that Drupal always defaults its administrative links to the root, for example: http://www.domain.com/?q=admin. I don't want this, since my site is located in the user directory. Therefore, I want Drupal links to look like: http://www.domain.com/~sitename/?q=admin. How do I get this to happen when the url contains a tilde?

Is there a setting(s) I can change to make a global adjustment?

Thanks in advance, 
Doug
You have a variable ($base_url) for this in settings.php, in /sites/default usually.

Set $base_url to match the address to your Drupal site:

$base_url = "http://www.example.com/~stef";


Hope that helps!

PS: There is also a url setting in .htaccess you may want to look at if the above does not work.