I need to track which site consultants are registering from, we have three
sites each with the following consultant login button attached that passes the
URL as a variable and inserts it into the database.

<cfoutput><a
href="http://project.grm.com.au/consultants/index.cfm?url=#CGI.SERVER_NAME#"
class="consultlink"><font color="##3366CC"><b>Consultant
Login</b></font></a></cfoutput>

The problem is that when I publish any page using contribute the
#CGI.SERVER_NAME# variable is replaced with the hard coded URL value. My
development sites all begin with a devwww.grm.com.au so are incorrect. Does
anyone know how you can avoid this problem???