I tried to redirect my subdomains to the directory under public_html.
Nothing works with the following .htaccess.
Did I miss any point here?
Nothing works with the following .htaccess.
Code:
RewriteEngine on
RewriteCond %{http_host} .
RewriteCond %{http_host} !^www.mydomain.com [NC]
RewriteCond %{HTTP_HOST} ^(.*).mydomain.com [NC]
RewriteRule ^(.*)$ [URL]http://mydomain.com/%1/$1[/URL] [R=301,L]
Did I miss any point here?