I would like to do a 404 redirect with Apache, and I find several solutions:
The .htaccess method. But I don't want to add a .htaccess if not necessary.
virtual host method:
<VirtualHost *:80> ServerAlias *.example.com Redirect 404 /index.html ErrorDocument 404 /index.html </VirtualHost>
I would like to know what's the difference Redirect 404 and ErrorDocument 404?