나는 WHM을 사용하고 public_html에서 .htaccess를 public_html뿐 아니라 모든 하위 폴더로 작업하는 것이 필요하다. 루트에서 폴더의 전체 트리가 가능합니까?하위 디렉토리의 모든 레벨 .htaccess에서 IP 액세스 차단?
여기에 htaccess를 저장합니다. public_html\.htaccess
이 폴더는 영향을받지 않습니다.
이 작동하지 않으면 apache.config에서 htaccess와 동일한 명령을 사용할 수 있습니까?
규칙은 .htaccess 파일에서
ErrorDocument 403 http://google.com
Order Deny,Allow
Deny from all
Allow from 11.22.33.44
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
지금은 작동하지 않는 방법은 "myfolder"까지만 실행합니다. CentOS와 WHM/cPanel을 실행합니다. – JohnA
내 폴더에 htaccess 파일이 있습니까? 그렇다면 그것은 주요 것을 무시할 것입니다. [지시어 적용 방법] (http://httpd.apache.org/docs/2.2/howto/htaccess.html#how)을 참조하십시오. – drew010
아니요 다른 htaccess anytwhere가 없습니다. – JohnA