.htaccess关闭搜索引擎整个网站,除了一些URL(kohana)


.htaccess close for search engines whole site, except some urls (kohana)

关于:
小花网站,版本 3.0.8。

问题:
我想关闭整个网站供搜索引擎使用,除了
它的 baseinvest.kz/project 和内页(baseinvest.kz/project/view/110)

.htaccess 文件

RewriteEngine On
RewriteBase /
<Files .*>
Order Deny,Allow
Deny From All
</Files>
RewriteCond %{HTTP_HOST} ^www'.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule ^(?:application|modules|system)'b.* index.php/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !=/robots.txt
RewriteRule .* index.php [L]

我通过添加文件机器人找到了解决方案.txt

User-agent: *
Disallow: /
Allow: /project

本站分析 http://tools.seobook.com/robots-txt/analyzer/