Have you indicated the subfolder in the generated .htaccess file?
Make the following changes to .htaccess
Make the following changes to .htaccess
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /TEST