If I have registered multiple domain names but only intend to use one domain name for the website in question and put 301 redirects in place for all of the others, do I only need assign one domain name to an IP address?

  • Can you add a little bit more details on "assign one domain name to an IP address": In a control panel ? At your registrar ? In your web server config ? – jflaflamme Sep 27 '12 at 9:50
  • As jflaflamme states, your question is unclear. If you don't assign "an IP address" to these additional domains then you won't be able to setup a 301 redirect. Although the "IP address" could be one that is provided by your domain registrar, if they provide a redirection service (many don't, at least not an HTTP redirect). – MrWhite Sep 27 '12 at 10:13

I think what he is asking is this: 'I purchased multiple domain names. I intend to use ONE of them for a website, and have the others redirect to that one. Do I need to buy additional IP addresses for those domains even if they're not going to host anything but rather just redirect to the first domain?'

Important note: You can host 1000 domains (any number of) on one IP address, or one domain on 1000 (any number) of IP addresses. The way we accomplish this is through either 'shared' or 'cloud-based' (being simple here) hosting. You don't need to purchase or use more than one IP address for your domains, even if you are hosting different websites on them. Even doing the redirects, you'd only need one IP address (physically).

To accomplish the redirect from your old domains, simply put this in a .htaccess file at the ROOT of those domains:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^old-domain.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.net$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]

If you need additional help, please comment.


All of the domains need to point to the IP address (using A or CNAME records in the DNS), otherwise they will not resolve.

They also need to be handled by the webserver (eg IIS or Apache) so that the webserver knows to process the request (or at least, the IP address configured to catch all requests)

I'm not familiar with the setup for IIS, but the Apache configuration (usually httpd.conf) can include the 301 redirection suggested by @ionFish, or else it needs to be done at the site .htaccess file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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