Yep, I think you have it. Also make sure that if your ISP allows your
domain name to be accessed without the "www." portion, you include that
as a catch, i.e.:

<cfcase value="stuartkidd.com,www.stuartkidd.com" delimiters=",">

I do believe that CGI.SERVER_NAME is the correct server variable,
although I have been wrong before. :-)

Also, if you have trouble with your includes, try to remove the leading
slash. So if this doesn't work:

TEMPLATE="/index_stuartkidd.cfm">

try this:

TEMPLATE="index_stuartkidd.cfm">

Of course, the above assumes all files are in the same directory. And
finally, don't forget to set a defaultcase for those who access your
site from the IP address or some other subdomain:

<cfdefaultcase>
<cfinclude TEMPLATE="index_stuartkidd.cfm">
</cfdefaultcase>

Best of luck!

-Bret

Stuart Kidd wrote:

> Hi Bret,
>
>
> I like that idea, thanks.
>
>
> Is this what you mean?
>
>
> <cfswitch _expression_="#CGI.SERVER_NAME#">
>
>
> <cfcase value="www.stuartkidd.com">
>                                     <!--start of INCLUDE HEADER-->
>                                     <CFINCLUDE
> TEMPLATE="/index_stuartkidd.cfm">
>                                     <!--end of INCLUDE HEADER-->
> </cfcase>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to