Using .htaccess to set a sub directory as root directory
snippet in htaccess

Using .htaccess to set a sub directory as root directory

user740

RewriteEngine On

RewriteCond %{REQUEST_URI} !^/testsite/.*$
RewriteRule ^(.*)$ /testsite/$1 [QSA,L]