Results 1 to 2 of 2

Thread: need sub domain protected

  1. #1
    joomlaoscommerce is offline Unknown Net Builder
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need sub domain protected

    hello every body, i bought a domain, and created some sub domain, but i cant create user & password, once tried to to enable password protection by editing htaccess file , but failed. Thanks

  2. #2
    TopDogger's Avatar
    TopDogger is online now Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,197
    Thanks
    350
    Thanked 930 Times in 712 Posts
    If you want to protect the entire subdomain, and you are on a Linux server running Apache, then you would use the following technique.

    Password Protect a Directory with .htaccess - Web Development in Brighton - Added Bytes

    This will not work on a Microsoft server. The.htaccess file with password script goes in the root of the subdomain you wish to protect. Make sure that you use the correct server path to the .htpasswd file. You also need to encrypt the password in the .htpasswd file. Everything you need is on the page in that article.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


Tags for this Thread

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
  •