I was not able to find a straight answer for my question. I have 2 other websites (eg website 'A' and website 'B') under my current website (www.xyz.com). Both the website is in different folder. So to access my sub website url will be www.xyz.com/A/ or www.xyz.com/B/. I have created a 404.html page for my main website (www.xyz.com). How can I use the same 404.html page for my sub websites. I tried ErrorDocument 404 /404.html
It is working for my main website, but not working for my sub websites kindly advice.
.htaccessis pointing to a/404.htmlthat it thinks is in the/B/directory.ErrorDocument 404 /404.htmlfrom root .htaccess of main website but you need to have404.htmlpresent in each website's root path. (You can create symlinks of the main404.html)