When You need to change the root folder of the website transparently with no touching actual scripts, then this one would help.
RewriteEngine on# redirects to different root folderRewriteCond %{ENV:REDIRECT_STATUS} =""RewriteRule ^(.*)$ /_FOLDER_NAME_/$1 [L]