Mobile app version of vmapp.org
Login or Join
Karen161

: How do I map a customer's domain to a page in my website? I'm considering starting a website that allows customers to map a domain they own and control, to their page or subdomain in my

@Karen161

Posted in: #Domains #IpAddress #Subdomain

I'm considering starting a website that allows customers to map a domain they own and control, to their page or subdomain in my site. Do I need to have an IP address for each customer domain? Is this something that webhosts will commonly allow me to do?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

What you're talking about, at least on Apache web server, are called Virtual Hosts. Your customers/clients would simply need to point the A record for their domain at your server's IP address where you have the Virtual Hosts setup.

In your Apache configuration, you'll need to setup a new Virtual Host for each new domain you have coming in, which you can then send to whatever location on your server you desire.

This isn't the place for a full Virtual Hosts tutorial, but there are some good questions here, and there's always the Apache Virtual Host Documentation or the Apache Virtual Host Examples.

10% popularity Vote Up Vote Down


 

@Gail5422790

There's lots of ways to skin a cat here. Just use an .htaccess redirect in the root of their domain:

## 301 Redirect Old File
Redirect 301 / yourdomain.com/somepage.html


Or make a simple index page with a redirect in the header:

<?php header('Location: www.example.com/'); ?>


Then place it in the root of their domain.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme