I tried to protect a folder named "test" from control panel, security, passwork protected folders
when i entered the link www.mydomain.com/test i got a "Not Found /The requested URL was not found on this server."
In the test folder it generates a .htaccess like this
When i remove the .htaccess in the public_html, the when i go on the www.mycomain.com/test i get prompted for a user/password.
If i copy the generated script from the test folder (the .htaccess file) and paste at the end of the .htaccess the public_html file it works, but it requires user / password to access the site (www.mydomain.com) not only that folder
this is the .htaccess file in the public_html
Any ideas on how i could solve this problem?
Thanks
when i entered the link www.mydomain.com/test i got a "Not Found /The requested URL was not found on this server."
In the test folder it generates a .htaccess like this
Code:
AuthType Basic
AuthName "test"
AuthUserFile "/home/sossate/.htpasswds/public_html/test/passwd"
require valid-user
If i copy the generated script from the test folder (the .htaccess file) and paste at the end of the .htaccess the public_html file it works, but it requires user / password to access the site (www.mydomain.com) not only that folder
this is the .htaccess file in the public_html
Code:
php_value upload_max_filesize "10M"
php_value session_save_path "tmp/cache"
php_flag magic_quotes_gpc Off
php_flag register_globals Off
php_flag session.use_trans_sid Off
Options -Indexes
ServerSignature Off
Options +FollowSymLinks
php_flag display_startup_errors 0
php_flag display_errors 0
php_flag html_errors 0
php_value docref_root 0
php_value docref_ext 0
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
<IfModule mod_header.c>
Header unset ETag
FileEtag None
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css text/plain text/xml image/gif image/jpeg image/png
</IfModule>
<IfModule mod_expires.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresActive On
ExpiresDefault "access plus 1 year"
<IfModule mod_header.c>
Header set Cache-Control "public"
</IfModule>
</FilesMatch>
</IfModule>
Thanks