CDN and SEO
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #1060358. -->
Reported by: [superfedya](https://www.drupal.org/user/624176)
>>>
<p>Hi,</p>
<p>I know that the different path for the same content isn't good for SEO.</p>
<p>Right now I put into my .htaccess:<br>
RewriteCond %{REQUEST_FILENAME} !\.(gif|png|jpg|jpeg|jfif|bmp|css|js|zip|ico)$ [NC]<br>
RewriteCond %{HTTP_HOST} ^madfanboy\.com$ [NC,OR]<br>
RewriteCond %{HTTP_HOST} ^cdn1.madfanboy\.com$ [NC,OR]<br>
RewriteCond %{HTTP_HOST} ^cdn2.madfanboy\.com$ [NC,OR]<br>
RewriteCond %{HTTP_HOST} ^cdn3.madfanboy\.com$ [NC]<br>
RewriteRule ^(.*)$ <a href="http://www.madfanboy.com/">http://www.madfanboy.com/</a>$1 [L,R=301]</p>
<p>Now when I type: cdn1.madfanboy.com it's redirect to: madfanboy.com<br>
But if it's <a href="http://cdn1.madfanboy.com/site/sites/default/files/images_save/deadspace21.jpg">http://cdn1.madfanboy.com/site/sites/default/files/images_save/deadspace21.jpg</a> - it won't redirect anywhere. It is correct?</p>
<p>Thanks</p>
> Related issue: [Issue #2678374](https://www.drupal.org/node/2678374)
issue