Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 06, 2008, 10:07:47 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Splitting website features using subdomains  (Read 204 times)
TheOtherGuy
Space Explorer
***
Offline Offline

Posts: 6


WWW
« on: July 07, 2008, 06:51:17 AM »

Hello all,

I have recently started implementing a blog and forums on my site. I was wondering though, what are peoples opinions of using subdomains? What I have decided to do is to split the different components of my site into subdomains. For example, I have put all of my website related things on the www subdomain, my new blog is in the blogs subdomain, and my new forum is in the forums subdomain. Has anyone had any experiences doing things this way, good or bad?

It is still very early in the transition and I can change the way things are handled pretty easily, so I wanted some feed back as to how other people have fared with this configuration before I get to far along.
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3381



« Reply #1 on: July 07, 2008, 04:23:43 PM »

The main thing to keep in mind is that the server will see these subdomains as totally independent Web sites. You can't link between them or borrow files/images from one for use in another, without giving full http://subd.mysite.com/path/file  URLs (rather than just relative paths).

If you intend for visitors to see your blog and forum (and whatever else) as separate (but related) sites, consider using subdomains. This is best if you want them to go directly into the blog, forum, or whatever, and not move sideways at all into the other sites. If you want them to move around between these applications, I would leave them under the same "umbrella" of one domain. Just put them into their own directory trees under public_html/, rather than cluttering up your root with all this code. That is, public_html/blog/, public_html/forum/, etc. Cleanly separating application subsystems makes installation, maintenance, and removal/replacement easier if they're not stepping all over each other.
Logged

TheOtherGuy
Space Explorer
***
Offline Offline

Posts: 6


WWW
« Reply #2 on: July 08, 2008, 06:00:23 PM »

Thanks MrPhil, my intention is to have individual pieces but all of them still related to the main domain. So I think that I will stick with the sub domain split.

Just put them into their own directory trees under public_html/, rather than cluttering up your root with all this code. That is, public_html/blog/, public_html/forum/, etc. Cleanly separating application subsystems makes installation, maintenance, and removal/replacement easier if they're not stepping all over each other.

Agreed, and was way ahead of you. I have experience setting up servers and applications in an intra net setting, but I am completely new to setting up applications and usability on the Internet. It's different when your customers actually have a choice of which server to visit Grinning.
Logged
Vitalian
Spaceship Navigator
*****
Offline Offline

Posts: 75



« Reply #3 on: July 08, 2008, 09:41:07 PM »

The one problem is that the way LunarPages works mean that your users can navigate to the rest of the site from the original domain anyways. Even if you deny access to the folders without a specific HTTP_HOST variable, you still can't use the folder names again.
Logged
TheOtherGuy
Space Explorer
***
Offline Offline

Posts: 6


WWW
« Reply #4 on: July 09, 2008, 08:11:30 AM »

The one problem is that the way LunarPages works mean that your users can navigate to the rest of the site from the original domain anyways. Even if you deny access to the folders without a specific HTTP_HOST variable, you still can't use the folder names again.

I have added two folders called "blogs" and "forums" and have redirected them to their appropriate subdomains. I don't expect to ever use these folders for anything other then these subdomains so I don't think it's a big deal in this case. But I do understand what you mean.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM