Hi, I want to redirect sub domain http://www.dir.domain.com http://dir.domain.com http://www.domain.com/dir these should redirect to http://domain.com/dir Thanks in advance...
Hi anukilimanoor, I remember if you use CPANEL, it's no need to use .htaccess to redirect. You can create sub domain directly in CPANEL and it will redirect automatically. Example: http://imgs.megarchive.net
Im suing cpanel and i can able to access my subdomain... Here the problem is I want to keep a single address instead of multiple ie, if we are creating a subdomain we can access it in http://dir.domain.com , http://www.dir.domain.com , http://www.domain.com/dir , http://domain.com/dir I want to use only one ie http://domain.com/dir all other should redirect to this one. Hope you understand my scenario.. Thanks..
It's maybe to make some changes with domain record www,@ to your Host IP before create new subdomain by CPANEL. I remember that when I got the same problem.