RE: creating 404 page for CFM and JSP files.

2004-04-01 Thread Mike Townend
you could install ISAPI_ReWrite and setup a rule like...

# Convery .jsp to .cfm
RewriteRule (.*)\.jsp $1.cfm

 
Thats what we're using on one of our servers...

 
HTH

-Original Message-
From: Dan Phillips [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 1, 2004 16:18
To: CF-Talk
Subject: creating 404 page for CFM and JSP files. 

I think I'm having a brain fart today because I cannot get this to work.
Here is what I'm trying to do. 

I have a Win2K3 server running CFMX. This site I'm working with used to
use JSP pages. All the JSP pages have been rewritten to use CFM. Trouble
is, some of the JSP pages are still cached in search engines and people
still have them bookmarked. I've made a customer 404 page (in CF) to
redirect a user to the main site. The trouble I'm running into is that I
can't get the server to pull up my custom 404 when a JSP page is
accessed. All I get is the generic error:

A License Exception has been thrown

Will this not work unless JSP is installed on the server? I'm currently
have JSP mapped to be processed by the CFMX engine. 

TIA

Dan Phillips
CFXHosting.com
866.239.4678 x112
[EMAIL PROTECTED] 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: creating 404 page for CFM and JSP files.

2004-04-01 Thread Ubqtous
Dan,

On 4/1/2004 at 10:17, you wrote:

DP Will this not work unless JSP is installed on the server? I'm currently
DP have JSP mapped to be processed by the CFMX engine.

You should be able to tell your web server (IIS?) to check for the
existence of JSP files before sending them to the application server,
and then specify a CFM template as your 404 handler.

The same can be done for CFM modules as well, so you don't have to
specify a custom 404 handler in CF Admin just for CFM pages.

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: creating 404 page for CFM and JSP files.

2004-04-01 Thread Mark A. Kruger - CFG
make sure and delete all the jsp files. What is probably happening is that CF (i.e. Jrun) is being tasked by IIS to
serve the JSP pages, but you have the wrong version to do it (like CF professional).Also, go into the site properties
and make sure that CF is NOT tasked with serving JSP pages (click on the configuration button on the web site tab). Make
sure the site knows that JSP is persona non grata.

-Mark

-Original Message-
From: Dan Phillips [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 9:18 AM
To: CF-Talk
Subject: creating 404 page for CFM and JSP files.

I think I'm having a brain fart today because I cannot get this to work.
Here is what I'm trying to do.

I have a Win2K3 server running CFMX. This site I'm working with used to
use JSP pages. All the JSP pages have been rewritten to use CFM. Trouble
is, some of the JSP pages are still cached in search engines and people
still have them bookmarked. I've made a customer 404 page (in CF) to
redirect a user to the main site. The trouble I'm running into is that I
can't get the server to pull up my custom 404 when a JSP page is
accessed. All I get is the generic error:

A License Exception has been thrown

Will this not work unless JSP is installed on the server? I'm currently
have JSP mapped to be processed by the CFMX engine.

TIA

Dan Phillips
CFXHosting.com
866.239.4678 x112
[EMAIL PROTECTED]
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]