Ian-San Posted February 7, 2003 Share Posted February 7, 2003 Does anyone know a way to capture all 'docs not found' errors and auto-redirect to the home page? My server does not allow the auto-redirect on ther standard apache error page, just a manual link back. I just finished merging my two shops and now getting loads of errors from out of date search engine links. It will resolve in time but this must be a nice feature for OS if it is possible to do it?? Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
mattice Posted February 7, 2003 Share Posted February 7, 2003 Does anyone know a way to capture all 'docs not found' errors and auto-redirect to the home page? My server does not allow the auto-redirect on ther standard apache error page, just a manual link back. I'm not sure what you mean by that... you're not allowed to have custom error docs? Are we talking Apache? Could use an .htaccess in that case. Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Ian-San Posted February 7, 2003 Author Share Posted February 7, 2003 Mattice This is the best I have at the moment: http://www.nowsayit.com/catalog_ja/index.php Unfortunately, it is in English and my Japanese customers just ignore it. I tried to make it an auto-redirect but the server hosting company doesnt allow it for some reason - or I did it wrong. The best solution is that any error is captured and auto-directed on. Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
mattice Posted February 7, 2003 Share Posted February 7, 2003 So can you make that a php file instead of an html file? With php you can force a re-direct by sending raw headers. See here for a code snippet you could use instead of the html: http://www.oscommerce.com/forums/viewtopic.php?t=32331 Let me know if you need help Regards, Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Ian-San Posted February 7, 2003 Author Share Posted February 7, 2003 Mattice Many thanks - this looks like a solution. :D Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Ian-San Posted February 7, 2003 Author Share Posted February 7, 2003 Mattice Thanks for your help - For the record in case anyone else has this problem, I found that I could use <meta http-equiv="Refresh" content="0; url=http://www.nowsayit.com"> in the head of the 404 error document. Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.