codingmasterRS Posted May 23, 2011 Share Posted May 23, 2011 How do I setup my PHP code and server to accept custom domains on my program like tumblr does? http://www.tumblr.com/docs/en/custom_domains I know the domain owner needs to do the A name part but what needs to be done my side? Cheers in advance Quote Link to comment https://forums.phpfreaks.com/topic/237222-server-settings/ Share on other sites More sharing options...
Psycho Posted May 23, 2011 Share Posted May 23, 2011 EDIT: reread your post and it is different than I initially thought. Assuming you are hosting multiple sites using the same code-base you would likely have some different static content (i.e. flat-files) and either separate databases or a single database where all the records have a foreign key for each site. So, in your logic you would need to check the domain name used to access the site (check the $_SERVER global var), then find the root of the domain name. Once you have that, use the value to determine the correct folder(s) and the correct databases or site ID to use. Quote Link to comment https://forums.phpfreaks.com/topic/237222-server-settings/#findComment-1219110 Share on other sites More sharing options...
codingmasterRS Posted May 28, 2011 Author Share Posted May 28, 2011 Its all done in PHP like tumblr of Facebook. So like tumblr the user would need to set the A record of the domain and then they would need to enter in (on my site) their domain and then it needs to (magically, how?) show their page....... So how does the PHP code work? Quote Link to comment https://forums.phpfreaks.com/topic/237222-server-settings/#findComment-1221466 Share on other sites More sharing options...
codingmasterRS Posted June 3, 2011 Author Share Posted June 3, 2011 BUMP Quote Link to comment https://forums.phpfreaks.com/topic/237222-server-settings/#findComment-1224446 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.