I\'m trying to deploy a site generated with Jekyll and would like to keep the site in its own subfolder on my server to keep everything more organized.
Essentially,
The only simple solution worked for me is here
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-name.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/$1 [L]
Put this code into your .htaccess file.
domain-name.com – Type your own domain name
folder – Type the name of the subfolder which has the test/development website