Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I need to create a domain alias to forward http to

It has to be a forward and not a redirect (I was told it can be done by creating CNAME).

Note I am using Plesk and creating a domain alias in plesk creates an A record not a CNAME.

Any thoughts please?

share|improve this question

2 Answers 2

Consider...        CNAME        A


  1. when a DNS resolver encounters a CNAME record while looking for a regular resource record, it will restart the query using the canonical name instead of the original name.
  2. That is when an A record lookup for is done, the resolver will see a CNAME record and restart the checking at and will then return

In Plesk, when we create a domain alias, actually it adds ServerAlias in vhost configurations of httpd, and hence the A record. Read Here and try relating with this.

As a matter of fact is resolving directly to pointing IP address, restarting of query is not required is in CNAME.

share|improve this answer

There is no difference between a forward and a redirect. What you mean is probably the function called "Redirection" in Plesk and that function needs to be enabled by your host to show up. If it's not there, ask your hoster to enable it for you.

If Plesk (or your hoster) doesn't help you out, you may need to add this to your root-folder's .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /
    RewriteCond %{HTTP_HOST} !^$ [NC]
    RewriteRule ^(.*)$$1 [R=301,QSA,L]

If your host gives you 500 error, remove the hash from the third line. That ought to do it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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