+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: .htaccess help

  1. #1
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    .htaccess help

    Ok i want to make a part of my site (www.igames.org.uk) only available to people with a password sorta like a vip zone. I have create both the .htaccess file and the .htpasswd file and yet when i go on the file to password protect it doesn't work. Can someone take me trhough what i need on the .htaccess file.


    AuthUserFile /home/oliv272/public_html/.htpasswd
    AuthType Basic
    AuthName "My Secret Folder"
    <Files /home/oliv272/public_html/XXXXX>
    Require valid-user
    </Files

    Why isnt it working-by the way for the sake of keeping the vip bit a vip bit i have left out the ending of the file hence XXXX
    I will be forever grateful to you if you go on iGames: The place for online games

  2. #2
    vishal's Avatar
    vishal is offline -::-X10 Guru-::- vishal has a brilliant futurevishal has a brilliant future
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,250

    Re: .htaccess help

    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

  3. #3
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    Re: .htaccess help

    still doesn't work ?
    I will be forever grateful to you if you go on iGames: The place for online games

  4. #4
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    Re: .htaccess help

    i think i found the problem i saved htpasswd as a txt folder
    I will be forever grateful to you if you go on iGames: The place for online games

  5. #5
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    Re: .htaccess help

    nope still doesn't work
    I will be forever grateful to you if you go on iGames: The place for online games

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: .htaccess help

    Code:
    AuthType Basic
    AuthName "My Secret Folder"
    AuthUserFile  /home/oliv272/public_html/.htpasswd
    
    <Files XXXXX>
      Require valid-user
    </Files>
    Do not use the absolute path.
    Also, store the password file outside of public_html for security purposes.
    Nothing is always absolutely so.

  7. #7
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    Re: .htaccess help

    absoulute path for the file im password protecting?
    I will be forever grateful to you if you go on iGames: The place for online games

  8. #8
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    Re: .htaccess help

    AuthType Basic
    AuthName "education"
    AuthUserFile /home/oliv272/public_html/.htpasswd

    <Files X>
    Require valid-user
    </Files


    Still not working?
    I will be forever grateful to you if you go on iGames: The place for online games

  9. #9
    websitedude is offline x10 Sophmore websitedude is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    UK
    Posts
    218

    Re: .htaccess help

    do i need "X" ending like .php or .htm in it
    I will be forever grateful to you if you go on iGames: The place for online games

  10. #10
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: .htaccess help

    You put in the full name of the file
    Nothing is always absolutely so.

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. HELP .htaccess
    By kidcajes in forum Programming Help
    Replies: 5
    Last Post: 09-23-2009, 12:44 PM
  2. .htaccess
    By Cliff Dude in forum Programming Help
    Replies: 10
    Last Post: 04-12-2008, 04:51 PM
  3. .htaccess
    By deaddevil in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 12-09-2007, 06:49 AM
  4. .htaccess Help
    By blood in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 09-30-2007, 11:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers