I have built a profile page website. The user is given a profile page like IH, i.e. abc.com/username
I want users to be able to use their own domain/sub-domain.
With all the reading, I could surmise CNAME is the way to go.
The user can set the CNAME and direct it to my domain.
My queries;
your approach should basically work but since dns does not know about path names (ie.
/username
), your app will need to do the following:johndoe.com
)johndoe.com
-- which is a cname toabc.com
)johndoe.com
is configured for the user atabc.com/johndoe
)you can also allow multiple external cname domains to point to the same user by letting them configure as many as you'd like in their profile.
i do the same (though somewhat more complicated) over at bubble.email.
Thanks for the reply.
So, I have to use HTTP referrer in my script to identify the domain being used by user. Please correct me if I am wrong. (Step 2 in your reply)
Is there a guideline for the server side scripting?
not referer. the host header. the user‘s browser sends the requested domain in the
Host
header.So the subdomain & domain only. Not the URL parameters.
Thanks =)
I have this same issue. Were you able to find a guide on how to do this?
sz's reply was helpful for me to get things moving in the right direction.
However, dealing with non-tech resellers was tiring. So I opted for the cURL way for that project.
https://www.indiehackers.com/post/letting-resellers-parse-my-single-page-html-content-seems-like-a-good-idea-do-you-agree-95c35bd5a4