For a simple, pure-CF site, perhaps.  Macromedia.com, on the other
hand, used multiple, or at least non-default, context paths (which
break your cgi.script_name attempt), a whole pile of non-CF stuff
(which wouldn't be affected by a CFML solution), and a bunch of
mod_rewrite (which would need to be modded directly to ensure the
unrewritten URLs are what was transfered).

cheers,
barneyb

On 7/17/06, Casey Dougall <[EMAIL PROTECTED]> wrote:
> Only takes a min to make a site wide redirect... you don't even need to
> change the code... just plop this in application.cfm
>
> <!--- 301 REDIRECTION TO THE CORRECT DOMAIN NAME - adobe.com --->
> <CFIF NOT #CGI.SERVER_NAME# CONTAINS "www.adobe.com">
>     <CFHEADER STATUSCODE="301" STATUSTEXT="Moved permanently">
>
>     <CFSET strNewURL="http://www.adobe.com#CGI.SCRIPT_NAME#";>
>         <CFIF #CGI.QUERY_STRING# NEQ "">
>             <CFSET strNewURL="#strNewURL#?#CGI.QUERY_STRING#">
>         </CFIF>
>     <CFHEADER NAME="Location" VALUE="#strNewURL#">
> </CFIF>
> --

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246830
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to