in Cpanel, it will make the sub domain and point to the same dir-name in public_html dir.
i need to point the subdomain to the directory which i choosed.
Exapmle:
Cpanel:
http://sub-domain.domain.com re-dir to puclic_html/sub-domain
I need:
http://sub-domain.domain.com re-dir to puclic_html/my_dir/sub-domain
Could i do it by using mod_rewrite in file puclic_html/.htaccess ?
CODE
RewriteEngine On
RewriteCond %{HTTP_HOST} [^.]+\.domain\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([^.]+)\.domain\.com(.*) http://domain.com/my_dir/$1 [R]
RewriteCond %{HTTP_HOST} [^.]+\.domain\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([^.]+)\.domain\.com(.*) http://domain.com/my_dir/$1 [R]
If posible, can you help me ?
thank you,