# Google Apps redirect
Redirect 301 /mail http://mail.google.com/a/domain.com

# File execution order
DirectoryIndex index.php index.html

# Added to prevent directory browsing
Options -Indexes

# Redirect primary cPanel "domain.com" to a subfolder with same name: /domain.com/
RewriteEngine on
RewriteCond %{HTTP_HOST}  ^(www\.)?domain.com$ [NC]
RewriteCond %{REQUEST_URI} !^/domain.com/
RewriteRule ^/?(.*)$  /domain.com/$1 [L]