I prefer to use a cross domain canonical instead of 301:
<link rel="canonical" href="http://example.net/dirA" />
is it OK for SEO purposes?
Is it better than meta refresh like this?
<meta http-equiv=refresh content="0; url=http://example.net/dirA" />