I have domain mydomain.com and I have added subdomain subdmain.domain.com through cpanel. It works but I want to force that ef someone access subdomian.domain.com he is forwared to www.mydomain.com/subdomain/. I wnat this as redirection so new url is shown in visitors browser address field.
i've created .htaccess and placed it no root of the domain.com. Its contents is this:
RewriteEngine on
RewriteRule ^subdomain\.domain\.com(.*) www.domain.com/subdomain/$1 [R]
It does not work. What Am I doing wrong. Is itpossible that cpanel already set some url rewriting in this case and it overrideds my rules?
i've created .htaccess and placed it no root of the domain.com. Its contents is this:
RewriteEngine on
RewriteRule ^subdomain\.domain\.com(.*) www.domain.com/subdomain/$1 [R]
It does not work. What Am I doing wrong. Is itpossible that cpanel already set some url rewriting in this case and it overrideds my rules?
Comment