Fred K
Fred K

Reputation: 13910

Custom 404 page

I'm using html5 Boilerplate that has a 404.html page but if I navigate to a wrong URL it doesn't display. The browser shows the default 404 page. htaccess file has already this line:

ErrorDocument 404 /404.html

Some help?

Upvotes: 0

Views: 528

Answers (1)

rekire
rekire

Reputation: 47975

Does you have set in your directory directive AllowOverride All? This must be somewhere in your server configuration. E.g. the virtual host configuration:

<Directory /path/to/htdocs>
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All # this All here is important, default is none
    Order allow,deny
    Allow from all
</Directory>

Upvotes: 0

Related Questions