0

I have registered 3 domains with .com, .co.in and .in extensions. My .com domain is hosted. I want users to be redirected to the .com website when they type in the .co.in and .in urls. How do I do that?

4

2 Answers 2

1

There are 2 Solutions for this problem

Solution 1:

CNAME Record on the DNS-Server.

IN CNAME example.com.

This DNS Record Redirect the domain e.g. example.io to example.com. If you wan't to redirect a Subdomain e.g. sub.example.io you need to use:

sub IN CNAME example.com.

Solution 2:

Redirect with the Webserver

NGINX:

server {
    listen 80;
    server_name example.io;
    return 301 http://example.com$request_uri;
}

Apache:

<VirtualHost *:80>
    ServerName example.io
    Redirect 301 / http://example.com
</VirtualHost>

Apache may need to be changed.

0
  1. Log into cpanel
  2. Click 'Parked Domains'
  3. Add the domains
  4. Go back to 'Parked Domains'
  5. Then for each domain:
    1. Click Manage Redirection
    2. Enter the address you want the domain to rediect (such as www.example.com)
    3. Click save

Remember: your .co.in and .in domains have to be setup to 'point' to your cpanel webhost for this to work (the domain's nameservers set to your cpanel host). You also need to have 2 (or more) 'Parked Domains' available on your cpanel package.

Not the answer you're looking for? Browse other questions tagged .