I have already seen several attempts to enable error pages in apache / php but none worked here.
I have .htaccess and I have the following lines in it:ErrorDocument 400 /index.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(index|index/)$ index.php [NC,L]
RewriteRule ^index/([a-z0-9-]+)$ index.php?pagina=$1 [NC]
</IfModule>
I ran the test with a nonexistent page on localhost!
Why does not apache redirect to error pages?
I also tried that in .htaccess and did not give
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
ErrorDocument 400 /index.php
ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
RewriteRule ^(index|index\/)$ index.php [NC,L]
RewriteRule ^index\/([a-z0-9-]+)$ index.php?pagina=$1 [NC]
</IfModule>
I have already restarted Apache and nothing
Setei AllowOverride for All on all occurrences of httpd.conf. I took the comment from the mod_rewrite line.
Nothing!