.htaccess help

websitedude

New Member
Messages
218
Reaction score
0
Points
0
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
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
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.
 

websitedude

New Member
Messages
218
Reaction score
0
Points
0
AuthType Basic
AuthName "education"
AuthUserFile /home/oliv272/public_html/.htpasswd

<Files X>
Require valid-user
</Files


Still not working?
 

websitedude

New Member
Messages
218
Reaction score
0
Points
0
ok i copied your code nd changed the X and it still doesn't work. But when i upload my site it doesn't show its uploading the .htaccess file
 

websitedude

New Member
Messages
218
Reaction score
0
Points
0
AuthType Basic
AuthName "My Secret Folder"
AuthUserFile /home/oliv272/public_html/.htpasswd

<Files X.php>
Require valid-user
</Files>


still not working I'm not even sure if front page has uploaded the .ht pages to my site
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Well, they are doing some more upgrades, etc. That might be messing with uploads.
Maybe you should put off this for awhile.
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
ok thanks for the help its really apreciated

Hi websitedude,

Can edit the file .htaccess adn check for FrontPage in that file make it

Most probably it will be at top with

# -FrontPage-

Give some space in between Front and page so that the cpanel won't think that the front page extensions are installed.

Actually this is the problem with the Front page extensions with new Cpanel version. This feature is not allowing when Frontpage extension are installed the password protected directories will be disabled.

Anyway the above FrontPage word is a comment so no problem with it.

Try this.
* This is temporarily enabling the Password protected directories. Till any permanent solution is there you can use this
 
Last edited:

websitedude

New Member
Messages
218
Reaction score
0
Points
0
sorry I am not following you on this where is the front ppage bit that needs changing
 

websitedude

New Member
Messages
218
Reaction score
0
Points
0
in it there is nothing about front page the whole code in the file is :
AuthType Basic
AuthName "My Secret Folder"
AuthUserFile /home/oliv272/public_html/.htpasswd

<Files X.php>
Require valid-user
</Files>
 
Last edited:

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
in it there is nothing about front page the whole code in the file is :
AuthType Basic
AuthName "My Secret Folder"
AuthUserFile /home/oliv272/public_html/.htpasswd

<Files X.php>
Require valid-user
</Files>
Try to use the Password protected directories link in your cpanel. and tell me whether it is giving any error when open it?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
How are you accessing the files? FTP or cPanel?
What address are you using to get there?
 
Top