Also, URLs cannot reliably be built by concatenation. They will be different if the installation uses path_info_disabled (see config.inc.php).