SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot Rocko's Avatar
    Join Date
    Dec 2000
    Location
    Louisiana
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, this may be a silly question, but I really do not know if
    this can be done or allowed.

    Ready :: Lets say that a web host offers you so many sub-domains. Could I use one of those sub-domains for practice for learning PHP and CGI or whatever, and have the page password protected? I just think it would be a great way to learn and practice new technologies. Is anyone doing this?

    Thanks, and I hope that didn't sound too cheesy ::

    // -->Rocko
    "If it's taking up my time, then it must be good!" -Rocko

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's very easy and quite possible. Make sure you check with your host whether the sub-domain created actually points to another sub-directory or a separate site in itself, then protect it with an .htaccess file to restrict access.
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    SitePoint Zealot Rocko's Avatar
    Join Date
    Dec 2000
    Location
    Louisiana
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BC....

    Thanks for the reply:: One more question. Does it matter whether the sub-domain is pointing to another sub-directory or is a separate site? What's the difference? Thanks a lot.

    // -->Rocko
    "If it's taking up my time, then it must be good!" -Rocko

  4. #4
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It does matter slightly....

    1. If your sub-domain points to a sub-directory under your main site, then create your .htaccess file and put it in that sub-directory.

    2. If your sub-domain is a separate site, then create your .htaccess file and put it in the main (or top-level) directory of the site.

    Hope that's clear enough for you to proceed
    My 2 Cents (or is that 2.2 Cents including GST?)

  5. #5
    SitePoint Zealot Rocko's Avatar
    Join Date
    Dec 2000
    Location
    Louisiana
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks BC; that clears up everything! I appreciate the help.

    // -->Rocko
    "If it's taking up my time, then it must be good!" -Rocko


Bookmarks

Posting Permissions

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