ted_chou12 Posted February 4, 2007 Share Posted February 4, 2007 i don know where this should go, so I posted it here, this is a definition of sub-domain: Sub domain Lets say your domain is mysite.com. You install a Message Board and put in in a directory called mysite.com/board/. You can turn the directory board into a sub-domain by adding it as a sub-domain from your Control Panel. Now you can access your Message board as either mysite.com/board OR board.mysite.com This costs you nothing and is free. However, what actually gets changed? is it the .htaccess file which controls this? or is it other things that takes care of this redirection? any help greatfully appreciated. Ted Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/ Share on other sites More sharing options...
trq Posted February 4, 2007 Share Posted February 4, 2007 You need to look into using Apache's virtual hosts. Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/#findComment-176796 Share on other sites More sharing options...
ted_chou12 Posted February 4, 2007 Author Share Posted February 4, 2007 What is "Apache's virtual hosts"? please? Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/#findComment-176799 Share on other sites More sharing options...
trq Posted February 4, 2007 Share Posted February 4, 2007 Its all in the manual. Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/#findComment-176800 Share on other sites More sharing options...
ted_chou12 Posted February 4, 2007 Author Share Posted February 4, 2007 thanks for the link, btw. can a subdomain url be setup through php automatically? because i want each user to have their own subdomain url, since it looks very cool, thanks. Ted Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/#findComment-176820 Share on other sites More sharing options...
trq Posted February 4, 2007 Share Posted February 4, 2007 If you have access to the httpd.conf file, yes, you can write to it with php. You may also be able to write a php handler which will catch this subdomain and redirect. All oyu need is a wildcard entry (*.yourdomain.com) in the A record of your DNS. Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/#findComment-176833 Share on other sites More sharing options...
ted_chou12 Posted February 4, 2007 Author Share Posted February 4, 2007 thanks , i will try my best to get it working Ted Link to comment https://forums.phpfreaks.com/topic/37030-subdomains/#findComment-176838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.