Jump to content

Subdomain Creation Issue


aim1hosting

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/41819-subdomain-creation-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.