I have a subdomain which redirects to a specific directory address. How can I disable that directory address if it is accessed directly?
i.e. sub.domain.com
redirects to domain.com/sub
. When I access domain.com/sub
directly it should redirect to error 404.
Thanks