Yes it is possible using a 301 Redirect and here is sample code to accomplish this scenario.
redirect 301 /test
http://www.your-website-url-comes-here.com
Put this code in your .htaccess file and put this file in your website's root folder. Now, whenever someone will try to open
http://www.your-website-url-comes-here.com/test/ or any file in test folder then it will redirect the borswer to
http://www.your-website-url-comes-here.com
Sincerely,
Ajay Chadha (Director)
Chadha Software Technologies