magento网站地图sitemap.xml很强大,可以生成各个一个店的网站地图这样,各个搜索引擎就比较好收录你的站的网页。
但有个问题,搜索引擎默认是搜网站根目录下的sitemap.xml,多store view生成的多个sitemap怎么才能更好的让搜索引擎收录呢。
那就在网站的robots.txt中声明下吧,还不知道 robots.txt是什么,google下吧。
以我的magentokey.com的robots.txt 文件为例
http://www.magentokey.com/robots.txt
内容如下
—————————————————————–
User-agent: * Disallow: /magento-template-demo/ Sitemap: http://www.magentokey.com/sitemap.xml Sitemap: http://www.magentokey.com/sitemapen.xml -------------------------------------------
可见我写了两个sitemap,一个是中文店的sitemap.xml,一个是英文店的sitemapen.xml。 我使用Disallow: /magento-template-demo/ 屏蔽了我的模板演示网址,我不想让搜索引擎收录我demo中的网页, 以免和我的店的产品混淆。
转载标明出处: hellokeykey.com
我想请问一下,边栏的分类菜单,怎么才能排到最上面去,我在xml里面用before根本一点作用都没有。
还有我在网上找的边栏的分类菜单只能显示3级目录,怎么才能,多显示几级目录呢?
希望钥匙大哥提供magento标准的robots写法,网上的robots写法太多,很多提供的都差太多,都不知道该怎么才考了。。。。
按照robots的标准写法来写就好了
谢谢,这是比较快的方法。
感谢你的支持!