RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.dvi\.com\.sg$ RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^/?$ "http\:\/\/www\.dvi\.solutions\/" [R=301,L]