Closed
Description
In our setup the sitemap generation build wrong urls for the sitemapindex via cron.
Preconditions
- Magento 2.1.6
- PHP 7.0.8
- Home of www-data user (execute the cron) is /var/www/
- Sitemap generation via cron is activated
- Generation over Magento 2 Admin Panel works correct
- Generation over Magento 2 Cron generate wrong urls
Steps to reproduce
- Start sitemap generation via cron
Expected result
- Normally the urls in sitemapindex are correct and used from Magento 2 main directory.
Actual result
- In the sitemapindex via cron the complete path from the home directory of the www-data user to the Magento 2 directory is set.
- for example Magento 2 is installed in folder /var/www/web/example_com/
- www-data home is /var/www/
- result in sitemapindex is http://www.example.com/web/example_com/pub/feeds/sitemap-1-1.xml