>- see footer for list info -<
CGI.SERVER_PORT

If you wanted to be clever, you could do a quick cfif and only append the
port if it's not 80 (for HTTP) or not 443 (for HTTPS)


On 3/14/07, Shawn Fawcett <[EMAIL PROTECTED]> wrote:

>- see footer for list info -<

I added a little so it would work with my local test site:
<cfif server_name eq  "127.0.0.1">
<cflocation

url="<http://#cgi.server_name##cgi.script_name#?#cgi.query_string#>http://#cgi.server_name##cgi.script_name#?#cgi.query_string#";
addtoken="no">
<cfelse>
<cfif cgi.https neq "on">
  <cflocation

url="<https://#cgi.server_name##cgi.script_name#?#cgi.query_string#>https://#cgi.server_name##cgi.script_name#?#cgi.query_string#";
addtoken="no">
</cfif>
</cfif>
It throws back the url:
<http://127.0.0.1/ARAXI_LIVE/wwwroot/index.cfm?action=members.login2>
http://127.0.0.1/ARAXI_LIVE/wwwroot/index.cfm?action=members.login2
where it shold trow back:
<http://127.0.0.1:8500/ARAXI_LIVE/wwwroot/index.cfm>
http://127.0.0.1:8500/ARAXI_LIVE/wwwroot/index.cfm

how would I get the missing ":8500" back in the url??



ARAXI Traductions France
100 Passage Henri Régnault - 92400 Courbevoie La Défense 6
Tél. : 01 49 03 41 49 - Fax : 01 49 03 41 42
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<




--
\ \
Peter Boughton
blog.bpsite.net
/ /
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to