1
我的WordPress网站上有一些Google索引问题。 当我将我的网站谷歌网站管理员的.htaccess
是以下Googlebot无法访问我的WordPress robots.txt
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
现在,我想这些行添加到.htaccess
文件,但谷歌仍然没有索引我的网站。
# BOT SETTINGS
SetEnvIfNoCase User-Agent .*google.* search_robot
SetEnvIfNoCase User-Agent .*yahoo.* search_robot
SetEnvIfNoCase User-Agent .*bot.* search_robot
SetEnvIfNoCase User-Agent .*ask.* search_robot
Order Deny,Allow
#Deny from All
Allow from env=search_robot
我在哪里做错了?
请尝试删除** SetEnvIfNoCase User-Agent。* google。* search_robot **部分然后重新提交。 –
我是一个防火墙问题。谢谢大家 – bit