J
Jsp
After following some tutorials I created a special 404 error page in the
same layout as the rest of my site and specified some corresponding
lines in the .htaccess file in the root directory of the site.
It works like a dream, so I was feeling very professional ,
but...
The directory structure of the site is like:
root, containing
- index.htm
- .htaccess
- stylesheet
subdirectory containing some standard images
subdirectory1
sub subdirectory1
etc.
subdirectory: errors
contains 404.htm
All files in all subdirectories refer to the stylesheet in the root and
some standard header images in the 'images' directory, using the
appropriate relative paths like ../stylesheet etc. That also applies to
the 404page.
The question:
Url: domain/wrongname gives the correct 404page
Url: domain/subdirectory/wrongname gives the correct 404page
Url: domain/subdirectory/subsubdirectory/wrongname gives the 404-page
with broken links to the headerimages and without the style.
I fixed it by using the absolute addresses in the 404page, so the
problem is over. But for the sake of the learning-curve: what could be
the explanation of the variable "path-level" of the called 404page?
Jsp
Site: http://www.lahaina.nl
same layout as the rest of my site and specified some corresponding
lines in the .htaccess file in the root directory of the site.
It works like a dream, so I was feeling very professional ,
but...
The directory structure of the site is like:
root, containing
- index.htm
- .htaccess
- stylesheet
subdirectory containing some standard images
subdirectory1
sub subdirectory1
etc.
subdirectory: errors
contains 404.htm
All files in all subdirectories refer to the stylesheet in the root and
some standard header images in the 'images' directory, using the
appropriate relative paths like ../stylesheet etc. That also applies to
the 404page.
The question:
Url: domain/wrongname gives the correct 404page
Url: domain/subdirectory/wrongname gives the correct 404page
Url: domain/subdirectory/subsubdirectory/wrongname gives the 404-page
with broken links to the headerimages and without the style.
I fixed it by using the absolute addresses in the 404page, so the
problem is over. But for the sake of the learning-curve: what could be
the explanation of the variable "path-level" of the called 404page?
Jsp
Site: http://www.lahaina.nl