DreamHost has instructions here.
Make a text file called .htaccess with the following code and upload it to the domain’s root directory.
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !^/blog/
# Rewrites all URLS [Replace "domain" with the actual domain, without the TLD (.com, .net, .biz, etc)]
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.
# Rewrite all those to insert /folder
RewriteRule ^(.*)$ /blog/$1 [L]
Alternatively.
RewriteEngine on
RewriteCond %{HTTP_HOST} example\.com [NC]
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ /blog/$1 [L]
