RewriteEngine on # Non-www to www RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] # Permanent redirect to https:// RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Use subfolder for domain # RewriteCond %{HTTP_HOST} ^(www.)?www.thismuchandmore.com$$ # RewriteCond %{REQUEST_URI} !^/thismuch/docroot/ # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d # RewriteRule ^(.*)$ /thismuch/docroot/$1 # RewriteCond %{HTTP_HOST} ^(www.)?www.thismuchandmore.com$ # RewriteRule ^(/)?$ thismuch/docroot/index.php [L] RewriteCond %{HTTP_HOST} ^(www.)?thismuchandmore.com$ RewriteCond %{REQUEST_URI} !^/thismuch/docroot/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /thismuch/docroot/$1 RewriteCond %{HTTP_HOST} ^(www.)?thismuchandmore.com$ RewriteRule ^(/)?$ thismuch/docroot/index.php [L] # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php72” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php72 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit