If you want to redirect your website to a subfolder you can edit (or create) the root file .htaccess using Apache ModRewrite
You can insert the following code:
1 2 3 |
RewriteEngine On RewriteCond %{REQUEST_URI} !^/subfolder RewriteRule ^(.*)$ subfolder/$1 [L] |
This method is useful also to create different installation (and version) of your website in different folders. You can edit then .htaccess file to redirect to one or another installation.