Wordpress htaccess导致谷歌问题
我不是程序员,我正在努力找出我们的.htaccess文件有什么问题 谷歌正在为www.domain.co.uk和domain.co.uk上的页面编制索引。我原以为.htaccess的编写方式可以解决这个问题,但事实并非如此。(网站管理员工具设置为www.forpreferred&canonical链接在每个页面上) 其次,我对Zoompf进行了性能检查&它给出了很多发现,其中许多是基于htaccess的 如果有人能看一下下面的文件(加上注释),请给我一些建议,我会非常感激的 非常感谢 戴夫 添加第一行以阻止Google列出文件夹索引 添加此选项可尝试阻止来自缓存页面的订单 不知道这是从哪里来的,但我想是从我们的Wordpress博客来的 为您的索引问题Wordpress htaccess导致谷歌问题,wordpress,.htaccess,redirect,Wordpress,.htaccess,Redirect,我不是程序员,我正在努力找出我们的.htaccess文件有什么问题 谷歌正在为www.domain.co.uk和domain.co.uk上的页面编制索引。我原以为.htaccess的编写方式可以解决这个问题,但事实并非如此。(网站管理员工具设置为www.forpreferred&canonical链接在每个页面上) 其次,我对Zoompf进行了性能检查&它给出了很多发现,其中许多是基于htaccess的 如果有人能看一下下面的文件(加上注释),请给我一些建议,我会非常感激的 非常感谢 戴夫 添加
options -Indexes
应该是
Options -Indexes
Wordpress的.htaccess:
Redirect /sexy http://www.blushlingerie.co.uk/underwear
Redirect /pages http://www.blushlingerie.co.uk/underwear
AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
options Indexes FollowSymLinks Includes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^blushlingerie.co.uk [nc]
rewriterule ^(.*)$ http://www.blushlingerie.co.uk/$1 [r=301,nc]
options +FollowSymLinks
RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.blushlingerie.co.uk [R=301,L]
options -Indexes
Options -Indexes
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]