redirect http://anySubdomain(wildcard).mydomain.com/
to:
anysubdomain(wildcard).mydomain.com/page2.php
i tried with this:
RewriteCond %{HTTP_HOST} ^(.*)\.mydomain.com$ [OR]
RewriteRule ^/?$ "http\:\/\/$1\.mydomain\.com\/page2\.php" [R=301,L]
But it does not work, the rewriteCond part works well, because, ANY subdomain is redirected.
But it reaches: " .mydomain.com/page2.php", what makes me think the problem is in the second line
Can you help me? thanks!