Welcome to WebmasterWorld Guest from 54.161.228.30

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

yet another 404 problem

only absolute URLs work on some virtual hosts

   
8:02 pm on Oct 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i have been using the following line successfully on one of our virtual hosts.

ErrorDocument 404 /404.html

the httpd.conf looks like this:

<Directory />
AllowOverride AuthConfig FileInfo
Options FollowSymlinks Multiviews
</Directory>

<Directory /usr/local/apache/sites/virtualhost.com>
AllowOverride All
Options FollowSymlinks IncludesNoExec Multiviews
</Directory>

but in another virtual host which i have set up identically, only an absolute URL works:

ErrorDocument 404 [virtualhost2.com...]

this is not optimal, because the old URL is not left in the browserbar, and i think the actual header sent is a 302.

i have double and triple checked all my syntax, and can't find any errors, but i think it must be something silly which i've missed? it's so odd that it works in one site and not in the other!

many thanks

9:27 pm on Oct 26, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Jamie,

Interesting...

PatrickDeese is struggling with the exact same problem over here [webmasterworld.com]. You two may want to compare notes.

Jim