I have created .htaccess under my public_html folder and it is like this: ErrorDocument 404 /404.php
if I type mydomain.com/random it shows the 404 error, however if I add anything else, like mydomain.com/random/texthere it shows up my site without css and not the 404 error page. Why it is doing that ?