+ Reply to Thread
Results 1 to 3 of 3

Thread: Subdomain or ordinary subfolder

  1. #1
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    361

    Default Subdomain or ordinary subfolder

    I want to set up individual test sites so that clients can view their web pages during development and OK them before going live with their sites.

    Are there any particular benefits and/or drawbacks to setting up a formal subdomain through cPanel versus just creating a subfolder under my main domain?

    Creating a subdomain allows access through clientname.example.com and access to an ordinary subfolder is through example.com/clientname, right? (Actually, I'm not entirely certain that both addresses don't work identically.)

    Is there anything that I'm missing here?

  2. #2
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    I'm pretty sure it's mostly just aesthetics, but there are a few advantages to actually making it a subdomain.

    First, the subdomain.example.com form of the address works only if you've made it a subdomain (the example.com/subdomain form works no matter what).

    Second, the subdomain.example.com form is a little neater, and less likely for a user to louse up.

    Third, you can get awstats on a subdomain, but to get stats on a simple subdirectory, you'd have to parse the raw access logs yourself (in effect, impossible). That's especially handy for doing things like tracking down 404 errors, which awstats gathers for you.

  3. #3
    Join Date
    Apr 2008
    Location
    Morgan Hill, CA
    Posts
    361

    Default

    Quote Originally Posted by Early Out View Post
    I'm pretty sure it's mostly just aesthetics, but there are a few advantages to actually making it a subdomain.

    First, the subdomain.example.com form of the address works only if you've made it a subdomain (the example.com/subdomain form works no matter what).
    Thanks, I didn't realize that.

    Second, the subdomain.example.com form is a little neater, and less likely for a user to louse up.
    Good point, I hadn't considered that.

    Third, you can get awstats on a subdomain, but to get stats on a simple subdirectory, you'd have to parse the raw access logs yourself (in effect, impossible). That's especially handy for doing things like tracking down 404 errors, which awstats gathers for you.
    Since these will be password-protected test sites, I wasn't planning to concern myself with any sort of stats. It's good to know, though, that separate stats are available if I do other subdomains in the future.

    Thanks for your thoughts.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts