RewriteEngine on RewriteCond %{HTTPS} =on RewriteCond %{REQUEST_URI} ^/?common [NC] RewriteRule ^/?(.*) http://foo.com/$1 [L,R]