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 Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
trq Posted February 4, 2007 Share Posted February 4, 2007 Its all in the manual. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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.