: 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
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?
More posts by @Karen161
2 Comments
Sorted by latest first Latest Oldest Best
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.