I am currently working on a codeigniter project.
I have a Codeigniter v3.0.0 web site, at example.com.
Now here I want my website users to use their custom domain name. Let's say a user signs up on my website, then he will get his own page: user1.example.com. Also he will be given an option to add his custom domain name. Let's say user adds his custom domain name as abc.com
Now I would like to point this custom user domain abc.com to user1.example.com. This needs to be dynamic as there can be any number of users.
I do not want a redirect, but the URL should remain at abc.com.
Any help would be greatly appreciated.
Open your hosts file (/etc/hosts) add following 127.0.0.1 test.domain.com (localhost IP) (your custom domain) save it. Go to browser and search "test.domain.com" It will work.