Reply to topic
Custom 404 error page with ColdFusion
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 771
Location: Newark, De
Reply with quote
I've setup a custom 404 page for my site here:

http://www.mtgotradingpost.com/404.cfm

which works well. However when testing it:

http://www.mtgotradingpost.com/blah.cfm

note the header and footer are gone. The code for this looks like this:

Code:
<head>
</head>
<body>
<!--- add page header --->
<cfinclude template = "ExpandPath(/includes/header.cfm)">
.
.
.
<!--- add page footer --->
<cfinclude template="/includes/footer.cfm">
</body>
</html>


Note I tried two different ways to get this working in the code. Now, where are my includes? Question Suggestions are welcome!
Alan
HostMySite Marketing

Joined: 08 Mar 2004
Posts: 126
Reply with quote
Jamie,

It should be working for you now. When configuring a custom error page that will be processing ColdFusion code you need to set the type to URL and not file.
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 771
Location: Newark, De
Reply with quote
Alan,

Your tech support rocks! I'm going to tell all my friends about you! Laughing
loftboy
Forum Regular

Joined: 24 Jun 2004
Posts: 1129
Location: Colorado
Reply with quote
that shouldnt take long LOL jk
nolandubeau


Joined: 07 Feb 2007
Posts: 1
Reply with quote
Hi,

I am having the same problem, but I didn't understand this... and how to set the "type"....

When configuring a custom error page that will be processing ColdFusion code you need to set the type to URL and not file

Can you please explain?

Thx.
Alan
HostMySite Marketing

Joined: 08 Mar 2004
Posts: 126
Reply with quote
Error pages have three types: Default, File, URL.

Default will load the standard error page provided by Microsoft.

File is used for static html pages or pages that have no scripting in them.

URL is used for dynamic pages or pages that have scripting (ASP, .NET, ColdFusion, etc).

If you configure the custom error through our Control Panel, you can set the type to URL. Instructions for configuring a custom error through our Control Panel can be found at http://hostmysite.com/support/cpanel/customerror/

Or, if you prefer, you can contact our support staff and we can configure this for you.
Custom 404 error page with ColdFusion
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic