Posted - 11/12/2018 : 06:42:34
Hey Guys, This piece of code is producing javascript that looks something like this: <script type="text/javascript">/* <![CDATA[ */ pIX[2]=0;pIM[2]='https://www.domainname.com/prodimages/image1.png*https://www.domainname.com/prodimages/image2.png*'; /* ]]> */</script> This is problematic because Google (and presumably other search engines) are reading this javascript and then trying to access the images, not understanding that the '*' character is an array separator. For example, this is a URL that Google is telling me is a 404 error: https://www.domainname.com/prodimages/image1.png*https://www.domainname.com/prodimages/image2.png* Not only is there actually 2 separate images there, but it's looking for the SINGLE images with '*' at the end as well. This, of course, can have consequences for us if Google sees what looks like 404s on all our product pages. Is it not possible to do this in a more SEO friendly way like: ‘http://domain/image1.png’, ‘http://domain/image2.png’, - Graham Slaughter
|