0
.httacess에서 직접 .xml 파일에 액세스하도록 사용자를 차단하지만 Google, MSN 또는 Yahoo 봇이 계속 크롤링하고 액세스 할 수있게하려면 어떻게해야합니까?사용자가 .xml에 액세스하지 못하게하지만 봇이 크롤링하도록 허용
내 httacess : 만이 IP를 얻을 수 있도록 할 수 있도록
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com$1 [R=301,L]
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^sitemap.xml$ /sitemap.php [L]
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
사용자가 자동으로 사이트 맵을 보호하고 싶습니다. 파일이 14k 링크를 초과하고 다른 사람이 내 사이트 맵을 여러 번로드하려고하면 시간이 초과됩니다. –
사이트 맵에 관심이있는 사람은 아무도 없습니다. 사용자는 그것을 얻으려고하지 않으며 관찰하는 것에 참여하지 않습니다. – kumesana