By my cpanel I've created a folder to protect by .htaccess, so to store my private documents.
But zencart (I think the .htaccess on root) don't permit me to see this folder.
My .htaccess on root is this:
and the .htaccess on protected folder "condivisione" is:PHP Code:SetEnvIfNoCase User-Agent "^libwww-perl*" block_bad_bots
SetEnvIfNoCase User-Agent "^JoeDog/1.00 [en] (X11; I; Siege 2.65b1)*" block_bad_bots
SetEnvIfNoCase User-Agent "^Yandex/1.01.001*" block_bad_bots
SetEnvIfNoCase User-Agent "^veoh*" block_bad_bots
SetEnvIfNoCase User-Agent "^Java1.4.0_01*" block_bad_bots
SetEnvIfNoCase User-Agent "^Java/1.4.1_04*" block_bad_bots
<Files *>
order allow,deny
Deny from env=block_bad_bots
allow from all
</Files>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# From Ultimate SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
# For dreamscape's News & Articles Manager
RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
#RewriteCond %{REMOTE_ADDR} ^204.12.77.150 [OR]
#RewriteCond %{REMOTE_ADDR} ^46.21.144.176 [OR]
#RewriteCond %{REMOTE_ADDR} ^74.201.150.111
#RewriteRule ^(.*)$ http://www.google.com/ [R=301,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?100asa.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://(www\.)?100asa.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?forum.100asa.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?grandufficio.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?openx.100asa.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://(www\.)?openx.100asa.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?notizie.100asa.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pagineprezzi.it/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hosted.comm100.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?chatserver.comm100.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://(www\.)?hosted.comm100.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://(www\.)?chatserver.comm100.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?translate.google.com/.*$ [NC]
RewriteRule .(gif|jpg|swf|flv|png|pdf)$ /feed/ [R=302,L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/centoasa
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
When I try to recall www.100asa.it/condivisione, I've the zencart "page not found"PHP Code:AuthType Basic
AuthName "condivisione"
AuthUserFile "/home/centoasa/.htpasswds/public_html/condivisione/passwd"
require valid-user


Reply With Quote
