0

I have my website host on shared hosting server where other websites are also hosted. Now I want to subdomain to point my website's folder on server. Means if we go to the URL coolname.domain.com then it should be redirect to www.domain.com. But It's redirected to Cpanel error page.

Thanks in advance.

1 Answer 1

0

The best way to do that is to set an entry in your DNS zone for your subdomain.

You can also use URL Rewriting in a .htaccess file :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.domain.com$
RewriteRule (.*) http://domain2.com/$1

Not the answer you're looking for? Browse other questions tagged or ask your own question.