I have a simple 404 redirect in my .htaccess
file:
ErrorDocument 401 /404.htm
ErrorDocument 404 /404.htm
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://hypnosis-retreat.co.uk/$1 [R,L]
When I enter the domain https://example.co.uk/bhabha
it correctly renders the 404 page. Where I enter the URL https://example.co.uk/bhabha/morebhabha
it fails to render the 404 page correctly.
I need to trap a path that goes nowhere.