Sitemap.php 2.3 KB

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