Jump to content

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/92087-weblog-service-like-bloggercom-or-others/
Share on other sites

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.