Image Indexing With A CDN
-
First of all, I want to make it clear that I have no issues with this plugin. Everything is working as intended and I really like it a lot. I do have one question, however.
After setting up W3 Total Cache, my images stopped being indexed by Google. That’s because the URL changed from https://www.domain.com/wp-content/uploads/2014/01/image.jpg —–> https://cdn.domain.com/wp-content/uploads/2014/01/image.jpg.
After a ton of research, MaxCDN was able to offer some assistance. I was advised to add the following to my .htaccess file for canonical URLs:
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|webp|html)(\.gz)?(\?.*)?$"> <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule .* - [E=CANONICAL:https://%{HTTP_HOST}%{REQUEST_URI},NE] RewriteCond %{HTTPS} =on RewriteRule .* - [E=CANONICAL:https://%{HTTP_HOST}%{REQUEST_URI},NE] </IfModule> <IfModule mod_headers.c> Header set Link "<%{CANONICAL}e>; rel=\"canonical\"" </IfModule> </FilesMatch>
Well, my images still aren’t getting cached by Google Images and it’s been longer than needs to be. Does anyone have any suggestions? For what it’s worth, I’m willing to donate to the plugin author or someone who can help me figure out how to get my images cached correctly in Google again. It would mean very much to me.
Thank you.
- The topic ‘Image Indexing With A CDN’ is closed to new replies.