I need to redirect a site in a sub-folder to another domain, so, inside the sub-folder I put the following .htaccess file:
Redirect 301 / http://www.newdomain.com/
With this, when I access the sub-folder url http://www.olddomain.com/site1 I get redirected to http://www.newdomain.com/site1, but the correct should be http://www.newdomain.com, without the subfolder url.