Magento – Rewrite all to www.example.com/shop

Use case:

You want to redirect all calls to www.example.com to www.example.com/shop

Add this to the .htaccess file:

RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteRule ^$ shop [L]