close the loop in .htaccess for redirecting all subfolders to root
问题 I am trying to redirect all subfolders to the root page using .htaccess. i.e. I'd like to redirect example.com/audio, example.com/video, example.com/images to example.com using below settings: However, I'd like to make it independent from the domain name. Hence, you don't see 'example.com' in my .htaccess setting. RewriteEngine On RewriteRule ^([^/]+)(.*)$ / [R] When I test it, my browser gives me "redirected you too many times error message" error message. I have checked the apache logs and