本站robots.txt设置和sitemap.xml

[[email protected] /]#more robots.txt
User-agent: *
Disallow: /wp-
Allow: /wp-content/uploads/
Disallow: /?
Disallow: /feed
Disallow: /*/*/feed
Disallow: /trackback
Disallow: /*/*/trackback
Disallow: /index.php?
Disallow: /index.php/
Disallow: /*.php$
Disallow: /*.css$
Disallow: /date/
Disallow: /page/
Sitemap: http://www.service-labs.com/sitemap.xml
[[email protected] /]#wget http://downloads.wordpress.org/plugin/google-sitemap-generator.3.2.4.zip
[[email protected] /]#touch sitemap.xml
[root@www.service-labs.com /]#chmod 777 sitemap.xml
[[email protected] /]#touch sitemap.xml.gz
[[email protected] /]#chmod 777 sitemap.xml.gz

原文链接:,转发请注明来源!
评论已关闭。