Sitemap.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. return [
  10. 'sitemap' => [
  11. 'class' => 'fecshop\services\Sitemap',
  12. /*
  13. 'sitemapConfig' => [
  14. #对于下面的设置,您可能感觉很啰嗦,域名作为store的key,在store service中已经设置,
  15. #为什么需要在这里重新搞一套呢? 这样做是为了更加的灵活
  16. #
  17. # appfront入口
  18. 'appfront' => [
  19. # store的key(域名),
  20. 'fecshop.appfront.fancyecommerce.com' => [
  21. 'https' => false, # false代表使用http,true代表使用https
  22. 'sitemapDir' => '@appfront/web/sitemap.xml', # sitemap存放的地址
  23. 'showScriptName'=> true, # 是否显示index.php ,譬如http://www.fecshop.com/index.php/xxxxxx,当nginx没有设置重写,这里需要设置为true,这样url中会存在index.php,否则会404
  24. # 这个设置对seo来说,设置为false最合适,也就是隐藏 url中index.php ,这种设置需要开启nginx的url重写
  25. ],
  26. # store的key(域名)
  27. 'fecshop.appfront.fancyecommerce.com/fr' => [
  28. 'https' => false, # false代表使用http,true代表使用https
  29. 'sitemapDir' => '@appfront/web/fr/sitemap.xml', # sitemap存放的地址
  30. 'showScriptName'=> true,
  31. ],
  32. 'fecshop.appfront.es.fancyecommerce.com' => [
  33. 'https' => false, # false代表使用http,true代表使用https
  34. 'sitemapDir' => '@appfront/web/sitemap_es.xml',
  35. 'showScriptName'=> true,
  36. ],
  37. 'fecshop.appfront.fancyecommerce.com/cn' => [
  38. 'https' => false, # false代表使用http,true代表使用https
  39. 'sitemapDir' => '@appfront/web/cn/sitemap.xml',
  40. 'showScriptName'=> true,
  41. ],
  42. ]
  43. ],
  44. */
  45. ],
  46. ];