Wordpress google robot仅显示移动设备的HTML结构,不应用CSS。为什么?

Wordpress google robot仅显示移动设备的HTML结构,不应用CSS。为什么?,wordpress,seo,Wordpress,Seo,我已经创建了一个具有响应性的wordpress网站,但当我们在google上进行手机友好测试时,它显示“您/我的网站不支持手机” 我观察到,CSS不是由google robot渲染的。我还允许google robot使用robot.text文件在我们的网站中搜索CSS文件 我将robot.txt文件代码放在下面: 屏幕显示如下: 就机器人而言,CSS文件不是一件事。当任何一个机器人(包括谷歌机器人)试图为你的网站编制索引时,你的标题是什么颜色都是无关紧要的。这就是为什么css文件从不被编入索

我已经创建了一个具有响应性的wordpress网站,但当我们在google上进行手机友好测试时,它显示“您/我的网站不支持手机”

我观察到,CSS不是由google robot渲染的。我还允许google robot使用robot.text文件在我们的网站中搜索CSS文件

我将robot.txt文件代码放在下面:



屏幕显示如下:


就机器人而言,CSS文件不是一件事。当任何一个机器人(包括谷歌机器人)试图为你的网站编制索引时,你的标题是什么颜色都是无关紧要的。这就是为什么css文件从不被编入索引(即使您在robots.txt中指定了它)。所以别担心,你的搜索列表根本不会受到影响

我注意到CSS文件阻止了.htaccess文件

所以我已经从.htaccess文件中删除了这些行,现在它可以正常工作了。问题已经解决


谢谢你的评论。

你检查过谷歌机器人是否可以使用CSS路径吗?谷歌网站管理员中有一个robot.txt测试仪。
User-Agent: *
Allow: /
Sitemap: http://example.com/sitemap.xml

Disallow: #Any folders we should not be allowing search bots to crawl.
Disallow: /wp-admin/
Disallow: /wp-content/cache
Disallow: /category/*/*
Disallow: /staging/
Disallow: /.hcc.thumbs/
Disallow: /10finsbury/
Disallow: /_db_backups/
Disallow: /affemailprdxn/
Disallow: /ajax/
Disallow: /assets_old/
Disallow: /assets_unk/
Disallow: /build_unk/
Disallow: /cgi_unk/
Disallow: /ciheropractice/
Disallow: /dekadesign-galaxy/
Disallow: /dekadesign-seroquel/
Disallow: /demowp/
Disallow: /dpulp/
Disallow: /eddynamics/
Disallow: /eddynamics730/
Disallow: /empwpstaging/
Disallow: /facebook-api/
Disallow: /furiousminds/
Disallow: /galaxy-cms/
Disallow: /galaxy-image-testing/
Disallow: /galaxy-test/
Disallow: /handt/
Disallow: /icehouse/
Disallow: /inxpress/
Disallow: /lead-usa/
Disallow: /liebhauserhome-ps/
Disallow: /maintenance/
Disallow: /ngbyliebhauser/
Disallow: /ngrebuild/
Disallow: /PIEFiles/
Disallow: /themefiletrans/
Disallow: /thememedwards/
Disallow: /repository/
Disallow: /staging/
Disallow: /staging/prdxn/
Disallow: /stats/
Disallow: /timeclock/
Disallow: /qcoal/
Disallow: /zhero-palma/
Disallow: /zherokappl-cms/
Disallow: /wp-content/themes/theme-wp/ANZBAIJuly152013.php/ANZBAI
Disallow: /wp-login.php/
Disallow: /wp-register.php/
Disallow: /*.php$
Disallow: /*.inc$
Disallow: /p13n_*
Disallow: /*.dll
Disallow: /servicetechnologies/
Disallow: /servicetechnologies
Disallow: /servicetechnologies/*
Disallow: /work-projects
Disallow: /work-casestudy
Disallow: /testimonial
Disallow: /testimonial/
Disallow: /testimonial/*
User-agent: Mediapartners-Google*
Allow: /
User-agent: Googlebot-Image
Allow: /wp-content/uploads/
Allow: /*.css$

User-agent: Adsbot-Google
Allow: /
Allow: /*.css$

User-agent: Googlebot-Mobile
Allow: /
Allow: /*.css$