Regarding the following from the handbook:

The tolerant Base URL

Submitted by weitzman@www.dr... on March 18, 2004 - 02:34.



Instead of using a hard coded domain as your $base_url in the includes/conf.php file, you might want to use



$base_url = 'http://' . $_SERVER['SERVER_NAME'];

if ($dir = trim(dirname($_SERVER['PHP_SELF']), '\,/')) {

$base_url .= "/$dir";

};



This has the advantage that whatever domain the user used to get to the site, he will maintain throughout his session.

I not sure I understand what this does. Let me explain my situation and perhaps someone can tell me if this would work.



My site is on a server at school. The url is something like
http://servername.dept.collegename.edu/~mystudentusername/mysitename/



I have registered a domain name - mysitename.com - that points to the url above.



I would like for all url's to show as mysitename/?blahblah... rather than

servername.dept.collegename.edu/~mystudentusername/mysitename/?blahblah...



Is that what this code does, or am I totally off base?