We have a web application that each user has their own address like our-app.com/user1. Our users want to use their own domain and redirect to their pages on our app. For example www.user1.com => our-app.com/user1
We will provide a simple interface in our application that asks for their own website IP/URL and redirect their website to ours.
Should we setup a DNS server to achieve this or can we use mod_rewrite? What is the best way to solve this?
Many thanks.