I would like to use .htaccess to use subdomains on a website but have little to no experience with .htaccess. I have the following in my .htaccess file but it doesn't work:
DirectoryIndex index.html index.htm index.php
AddHandler cgi-script .cgi .pl
RewriteEngine On
RewriteRule wmail$ http://webmail.x7hosting.com [R,NC,L]
RewriteCond %{HTTP_HOST} \.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST}<>%{REQUEST_URI} ^([^.]+)\.mysitehere\.org(:80)?<>/([^/]*) [NC]
RewriteCond %1<>%3 !^(.*)<>\1$ [NC]
RewriteRule ^(.*) /%1/$1 [L]
ErrorDocument 404 /404missing.php
Most of this I copied from other peoples suggestions. What I want is to enter Family.mysitehere.org and have it go to mysitehere.org/Family
Can anyone tell me what is wrong with the above code? Many thanks in advance.