RewriteEngine On RewriteCond %{HTTP_HOST} ^doubango\.org [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.doubango.org/$1 [R,L] RewriteRule ^click2dial/u/(.*)$ https://www.doubango.org/click2dial/index.html?u=$1 [L] RewriteRule ^click2dial/a/(.*)$ https://www.doubango.org/click2dial/index.html?a=$1 [L]