aim1hosting Posted March 8, 2007 Share Posted March 8, 2007 I am having quite an issue with subdomains. I have some sites that require self-replicating but the client wants the address to look like this http://yourname.domainname.com We have manually created the subdomain, and created a script that pulls the content from a folder called common that replicates the information and redirects to the subdomain, but we manually have to set up subdomains and place the index.php in the subdomains in order for the websites to work. Once the sites are live and working at http://yourname.domainname.com and and you click on another link inside the website it carries you to this http://yourdomain.com/common/affiliate=yourname. I need to mask all the pages being pulled into the client website with http://yourname.domainname.com Any suggestion on how to automatic this process so that the end result is 1.) creates subdomain 2.) places the index.php into the subdomain 3.) keeps all webpages masked to http://yourname.domainname.com Quote Link to comment https://forums.phpfreaks.com/topic/41819-subdomain-creation-issue/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.