Link to home
Start Free TrialLog in
Avatar of sbrodeur
sbrodeur

asked on

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>
Avatar of rick1971
rick1971

Avatar of sbrodeur

ASKER

I tried that once. And just did it again. Same thing :(
Do you have a server name as in:

ServerName www.yoursite.com
ASKER CERTIFIED SOLUTION
Avatar of rick1971
rick1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
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?
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
I suspect it's IE can't find it...shouldn't the / be \ if your on a windows OS?

C:\CfusionMX\wwwroot\getphysical!software
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;)