HaCos Posted November 18, 2014 Share Posted November 18, 2014 Hello, i have enabled cdn and all the static assets get loaded via cdn.domain.com . Cool so far, but when its time to submit these images to google although i use the default gsitemap module by PrestaShop the images do not have the correct url (cdn served) but instead there is my server url. Has anyone fixed that? What i actually need is a sitemap for all the statis content cdn serves. Thanks in advance, C ps I use cloudfront cdn. Link to comment Share on other sites More sharing options...
Dh42 Posted November 19, 2014 Share Posted November 19, 2014 There actually needs to be no fix really. I would let google index the original files. When I set up a cdn like that I always make sure I set the canonical header in the cdn file to the file on the server. That way all of your SEO power stays in your domain and does not leak out via your cdn. 1 Link to comment Share on other sites More sharing options...
x3n0m0rph Posted February 4, 2015 Share Posted February 4, 2015 Hi, I have the same problem - cdn enabled and all the static assets get loaded via cdn for 2 days now. This might be a huge SEO problem for me.. I have a shop that ranks wery good in google and now my images have been deleted from google index... will see next few days what happends... I used CDN like this: 2 other domains that point to the main one. All good untill I went to webmaster tools today and seen that my images are no longer indexed. How can I set/edit the sitemap module to show original image source? I tried to edit /gsitemap/gsitemap.php with no luck.. i think this is the section that needs to be edited... private function _addSitemapNodeImage($fd, $link, $title, $caption) { fwrite($fd, '<image:image>'."\r\n".'<image:loc>'.(Configuration::get('PS_REWRITING_SETTINGS') ? '<![CDATA['.$link.']]>' : $link).'</image:loc>'."\r\n".'<image:caption><![CDATA['.$caption.']]></image:caption>'."\r\n".'<image:title><![CDATA['.$title.']]></image:title>'."\r\n".'</image:image>'."\r\n"); } Pease help... For the moment I disabled media servers... and sitemap generates the right source.. but the images from google index are gone.... Link to comment Share on other sites More sharing options...
x3n0m0rph Posted February 9, 2015 Share Posted February 9, 2015 Still need help with this... Link to comment Share on other sites More sharing options...
Recommended Posts