?
Solved

404 Errors Not Working

Posted on 2003-03-04
9
Medium Priority
?
200 Views
Last Modified: 2010-03-04
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
Comment
Question by:sbrodeur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 

Expert Comment

by:rick1971
ID: 8066340
0
 

Author Comment

by:sbrodeur
ID: 8066386
I tried that once. And just did it again. Same thing :(
0
 

Expert Comment

by:rick1971
ID: 8066410
Do you have a server name as in:

ServerName www.yoursite.com
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Accepted Solution

by:
rick1971 earned 200 total points
ID: 8066415
<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
 

Author Comment

by:sbrodeur
ID: 8066477
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
 

Author Comment

by:sbrodeur
ID: 8066512
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
 

Author Comment

by:sbrodeur
ID: 8066539
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
 

Expert Comment

by:rick1971
ID: 8066552
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
 

Author Comment

by:sbrodeur
ID: 8066665
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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question