recycle_bin Posted February 20, 2008 Share Posted February 20, 2008 Hi all, I’m an intermediate in web development and specialized in php programming. About four month ago I was decided to starting a mini-weblog service like blogger or others. In this four month I’m reading many articles and some books that I think can help me, but anything can’t answer to my questions. For example, I don’t know what sub domains handled in automatically user registration in these systems (e.g. myname.blogservice.com). Physical directory was created and then application files copied there (very bad idea?!) or it’s logically and in act this sub domains are redirected to some thing like this: users.blogservice.com/blogs.php?id=myname Another question is about user domains on this service. For example in some blog services you can use your own domain, then www.myname.com was translated to myname.blogservice.com, but anyone can’t feel this. Anyways, now I’m reading some thing about apache domain and sub domain management, mod_rewrite and .htaccess tips and tricks (I think may be useful) and DNS managements. So I hope you can help me about the design and architecture of this project and I hope this topic be useful for everybody there. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/92087-weblog-service-like-bloggercom-or-others/ Share on other sites More sharing options...
recycle_bin Posted February 20, 2008 Author Share Posted February 20, 2008 first answer is the "virtual sub domains" by htaccess and mod_rewrite. (i write working code today!) Quote Link to comment https://forums.phpfreaks.com/topic/92087-weblog-service-like-bloggercom-or-others/#findComment-472003 Share on other sites More sharing options...
Xeoncross Posted February 22, 2008 Share Posted February 22, 2008 For example, I don’t know what sub domains handled in automatically user registration in these systems (e.g. myname.blogservice.com). Physical directory was created and then application files copied there (very bad idea?!) or it’s logically and in act this sub domains are redirected to some thing like this: users.blogservice.com/blogs.php?id=myname Catch-all domains are your answer. 1) *.yourdomain.com forwards to "yourdomain.com" root dir. 2) Then in that Dir you have a .htacces file that makes your system treat sub.yourdomain.com as yourdomain.com?member=sub Quote Link to comment https://forums.phpfreaks.com/topic/92087-weblog-service-like-bloggercom-or-others/#findComment-473972 Share on other sites More sharing options...
recycle_bin Posted February 23, 2008 Author Share Posted February 23, 2008 thanks Xeoncross for your help. Quote Link to comment https://forums.phpfreaks.com/topic/92087-weblog-service-like-bloggercom-or-others/#findComment-474321 Share on other sites More sharing options...
Xeoncross Posted February 26, 2008 Share Posted February 26, 2008 No problem. I wanted to do the same thing a while ago - but then I found that my host didn't have catch all subdomains :-\ Quote Link to comment https://forums.phpfreaks.com/topic/92087-weblog-service-like-bloggercom-or-others/#findComment-476532 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.