• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

404 Errors Not Working

Ok, I come back to you guys for help.

I am in the process of rereleasing a site thats already exists and this new site needs to replace it. Now, some of the links that exists will not work with the new site. I want to create a 404 document which will forward them to the new homepage in the event they click on older, bad link. That said...

Now, the redirect works in coldfusion for .cfm files, but for .html/.htm files Apache-SSL handles them.

Now. I am not getting Apache 404 errors when they occur, but rather i am getting IE 404 errors. In the error logs, it does show that a 404 error occured. But thats it.

Here is the virtual host:
<VIRTUALHOST 192.168.111.7:80>      
 SSLEngine off
 Port 80
 DocumentRoot C:/CfusionMX/wwwroot/getphysical!software
 ErrorDocument 404 c:/redirect.html
</VIRTUALHOST>
0
sbrodeur
Asked:
sbrodeur
  • 5
  • 4
1 Solution
 
rick1971Commented:
0
 
sbrodeurAuthor Commented:
I tried that once. And just did it again. Same thing :(
0
 
rick1971Commented:
Do you have a server name as in:

ServerName www.yoursite.com
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
rick1971Commented:
<VIRTUALHOST 192.168.111.7:80>      
ServerName 192.168.111.7:80
SSLEngine off
Port 80
DocumentRoot C:/CfusionMX/wwwroot/getphysical!software
ErrorDocument 404 c:/redirect.html
</VIRTUALHOST>
0
 
sbrodeurAuthor Commented:
No I did not have that in there. I just added it and tried it again and it didnt work.

I get this in the access log. Means it must be finding the 404 error.

192.168.111.7 - - [04/Mar/2003:14:00:58 -0500] "GET /index.html HTTP/1.1" 404 94
192.168.111.7 - - [04/Mar/2003:14:01:04 -0500] "GET /stupid.html HTTP/1.1" 404 94

I used your suggestion and also tried changing the ErrorDocument to the http version... still nothing. It really makes no sense. Why would it be using the IE 404... is it because it can't find the redirect file?
0
 
sbrodeurAuthor Commented:
No I did not have that in there. I just added it and tried it again and it didnt work.

I get this in the access log. Means it must be finding the 404 error.

192.168.111.7 - - [04/Mar/2003:14:00:58 -0500] "GET /index.html HTTP/1.1" 404 94
192.168.111.7 - - [04/Mar/2003:14:01:04 -0500] "GET /stupid.html HTTP/1.1" 404 94

I used your suggestion and also tried changing the ErrorDocument to the http version... still nothing. It really makes no sense. Why would it be using the IE 404... is it because it can't find the redirect file?
0
 
sbrodeurAuthor Commented:
Ok.. so I tried this on the server we will be using and moved added the "servername"  part on the server httpd.conf I am using and it seems to work. So thanks a lot! Still no reason why its not working on this test machine... but ahh well. Thanks again
0
 
rick1971Commented:
I suspect it's IE can't find it...shouldn't the / be \ if your on a windows OS?

C:\CfusionMX\wwwroot\getphysical!software
0
 
sbrodeurAuthor Commented:
Well it didnt seem to make a difference... its / way on win2k advanced server machine... and it seems ok... hopefully it doesnt cause more problems later;)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now