Skip to content

Why does my web server not show the 'error.html' page? #116

Discussion options

You must be logged in to vote

It took me some time to figure this out. The web hoster is http://gandi.net and you need to modify your .htaccess file. If you remove the Yellow dynamic rules, they are not needed for static pages anyway, then will it show the custom error page. The strange thing is that this web hoster runs Apache 2.4, which is used by the Yellow demo without having the same problem.

Here's an example:

<IfModule mod_rewrite.c>
RewriteEngine on

# Yellow dynamic pages

# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^ yellow.php [L]
# DirectoryIndex index.html yellow.php
# RewriteRule ^(cache|content|system)/ error [L]

# Yellow static pages

RewriteCond %{REQUEST…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by annaesvensson
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #116 on December 27, 2020 00:40.