htaccess rewrite only main domain to subfolder – CPanel
I'm using a cPanel account to host multiple sites. To have a clean public_html, I use .htaccess to redirect the main domain into one of the subfolders. So when user types in www.example.com, it will be rewritten into www.example.com/mainsite/ but…