The thing is when i comment this line (as i tested it before) the whole portal stops working. Links like myportaldomain.com/graphic/graphic-editors/something aren't working. I thought these lines makes robots friendly links.
So:
When i put this line into a comment, .htaccess with password protection in public_html/somefolder works correct,
but whole joomla portal isn't working - links like i wrote before mydomainportal.com/something/this-and-that aren't working.
When i uncomment this line links are ok, but when i go to public_html/somefolder i get 404 on index.php,
here is whole .htaccess in public_html (yes this is joomla):
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteBase /
DirectoryIndex index.php
php_flag register_globals off
php_flag display_errors off
Options -indexes
<Files 403.shtml>
order allow,deny
allow from all
</Files>