HighDots Forums  

404 errors on my website

Website Design comp.infosystems.www.authoring.site-design


Discuss 404 errors on my website in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Sharman
 
Posts: n/a

Default 404 errors on my website - 06-02-2004 , 05:14 AM






I've been investigating 404 errors on my website.
There are assorted 404 errors, including quite a few apparently
mis-linked images.
These occur from a variety of based generated pages (eg something like
"http://mydynamicsite.com/upbin/oform", containing a base href like
'<base href="http://mystaticsite.com/">' in the head). The image
references are things like "media/top.gif", and this gets linked to
http://mydynamicsite.com/upbin/media/top.gif rather than
http://mystaticsite.com/media/top.gif
They're all (apparently) from one accessor/cache server (gtw-13.nhs.uk),
using MSIE 6 (for the page), and BorderManager 3.0 (for the images). I
suspect it's a cache server because it's so busy. The pages work
correctly for all other accessors.

Anyone know of this issue ? Should I worry ? Can I provide a workaround?

Thanks,
Chris

Reply With Quote
  #2  
Old   
Greg Schmidt
 
Posts: n/a

Default Re: 404 errors on my website - 06-02-2004 , 12:05 PM






On Wed, 02 Jun 2004 10:14:17 +0100, Chris Sharman wrote:

Quote:
I've been investigating 404 errors on my website.
There are assorted 404 errors, including quite a few apparently
mis-linked images.
These occur from a variety of based generated pages (eg something like
"http://mydynamicsite.com/upbin/oform", containing a base href like
'<base href="http://mystaticsite.com/">' in the head). The image
references are things like "media/top.gif", and this gets linked to
http://mydynamicsite.com/upbin/media/top.gif rather than
http://mystaticsite.com/media/top.gif
They're all (apparently) from one accessor/cache server (gtw-13.nhs.uk),
using MSIE 6 (for the page), and BorderManager 3.0 (for the images). I
suspect it's a cache server because it's so busy. The pages work
correctly for all other accessors.

Anyone know of this issue ? Should I worry ? Can I provide a workaround?
If you're using Apache, how about adding a rewrite rule like:

RewriteRule ^http://mydynamicsite.com/upbin/media/(.*)
http://mystaticsite.com/media/$1 [R=301]

(all one line, of course). Other web servers should have similar
functionality.

--
Greg Schmidt gregs (AT) trawna (DOT) com
Trawna Publications http://www.trawna.com/


Reply With Quote
  #3  
Old   
Chris Sharman
 
Posts: n/a

Default Re: 404 errors on my website - 06-03-2004 , 03:58 AM



Greg Schmidt wrote:

Quote:
On Wed, 02 Jun 2004 10:14:17 +0100, Chris Sharman wrote:


I've been investigating 404 errors on my website.
There are assorted 404 errors, including quite a few apparently
mis-linked images.
These occur from a variety of based generated pages (eg something like
"http://mydynamicsite.com/upbin/oform", containing a base href like
'<base href="http://mystaticsite.com/">' in the head). The image
references are things like "media/top.gif", and this gets linked to
http://mydynamicsite.com/upbin/media/top.gif rather than
http://mystaticsite.com/media/top.gif
They're all (apparently) from one accessor/cache server (gtw-13.nhs.uk),
using MSIE 6 (for the page), and BorderManager 3.0 (for the images). I
suspect it's a cache server because it's so busy. The pages work
correctly for all other accessors.

Anyone know of this issue ? Should I worry ? Can I provide a workaround?


If you're using Apache, how about adding a rewrite rule like:

RewriteRule ^http://mydynamicsite.com/upbin/media/(.*)
http://mystaticsite.com/media/$1 [R=301]

(all one line, of course). Other web servers should have similar
functionality.
Not using Apache, but do have similar functionality.
It doesn't support passing requests to other web servers, though: these
two aren't virtual hosts on the same machine; they're different servers,
different architectures, with different owners in different cities.
Nice idea though.

Thanks,
Chris


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.