Don't use bad function

The getURL() function links to different things depending on
mod_rewrite. Besides which the function is redundant. It will be
deprecated on 1.4.6

As well, these uses do not match the functions's description.