I have never been able to figure out how to do this.
I am working on a PHP script. With my script, each user will have access to their own site.
For example, the URL for this would be myscript.com/frontend/username
where this uses an htaccess file to generate their site based on the username in the URL. (hope this makes sense).
Now I want to make it so that they can have their domain point to this.
For example, lets say their domain name is theirsite.com
.
I want to make it so that, say if someone visits theirsite.com/about
it really points to myscript.com/frontend/username/about
More examples:
theirsite.com/about
should point tomyscript.com/frontend/username/about
theirsite.com/blog/post-12
should point tomyscript.com/frontend/username/blog/post-12
theirsite.com
should point tomyscript.com/frontend/username
How do I do this?