Web Hosting Forums

Results 1 to 4 of 4

This is a discussion on To Subweb or Not To Subweb??? in the Hosting Talk & Chit-chat forum
We have a web site for writers, http://amsaw.org , in which a literary agency has its own sub-site, http://amsaw.org/swetkyagency/ . But, as I now know ...

  1. #1
    Loyal Client
    Join Date
    Jun 2003
    Location
    Southwestern high desert
    Posts
    2

    To Subweb or Not To Subweb???

    We have a web site for writers, http://amsaw.org, in which a literary agency has its own sub-site, http://amsaw.org/swetkyagency/. But, as I now know I'm the last to learn, when someone types in the literary agency address, up comes a linked list of all files and pages in the agency folder, instead of the agency's home page. I converted the agency site from a folder to a sub web, thinking that would do the trick, but it didn't.

    Any advice on how to set up the root web to get browsers to go to the agency's home page without exposing every file in the sub web? - D. J.

  2. #2
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,414
    Create .htaccess file (chmod 0644) in main domain or add the following to the current .htaccess file
    Code:
    # security feature
    <FilesMatch "\.ht(access|passwd|group)$">
    Deny from All
    </FilesMatch>
    
    Options -Indexes
    IndexIgnore *
    
    # create default html file or script for directory accesses
    # can be a single entry or multiple entries
    DirectoryIndex index.html home.html
    Go to cPanel->Manage site and "Add subdomain" (for http://amsaw.org/swetkyagency) if you have not done so already. You may need to contact support to enable this feature.

    These should get you on the right track.

  3. #3
    Loyal Client
    Join Date
    Jun 2003
    Location
    Southwestern high desert
    Posts
    2

    Thanks for that!

    I appreciate the info. It seems to work just fine, now. I owe you one. - D. J.

  4. #4
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,414
    You're welcome.
    In the spirit of the occasion, i.e. Friday, .

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
  •