I need to create 404 error pages but it should be usable for all of users, If I use ErrorDocument 404 /404.php it will display "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." on users web site, How to create it without placing 404.php in every users documentroot?
How to create custom 404 error page for all users in apache
apache-2.2
Related Topic
- How to create an Apache error page for redirected Zope
- ErrorDocument 404 not found in non-existent subdomain
- How to deny from a certain IP address but still show a custom error page with Apache2
- Custom 401 Page – 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request
- Centos – apache: absolute ErrorDocument relative /var/www/
Best Answer
You could configure your apache with rewrite rule as above:
but also put a system-wide alias in place for the /customerrors/ path
You'll just have to be a little careful to not override a website-local URL.