I'm getting duplicate content on Google and it's affecting my rankings.
After setting up your website to work through a CDN Resource with CDN77, your content may be accessible both from your domain as well as the CDN URL / CNAME, which can result in unnecessary duplicity and damage your SEO ranking.
You can prevent Google from crawling the duplicate links by following these two steps.
First, edit your server configuration like this:
Add this rewrite to your .htaccess file:
Add this to your configuration file (usually under /etc/nginx/nginx.conf )
Then add another robots file on your origin:
Create a robots_cdn77.txt file next to your standard robots.txt file on your origin, with following contents:
If you want your content from a CDN Storage to be unaccessible by Google as well, create a /www/robots.txt file with the same contents as above.
For more in-depth information regarding this, have a look at the following tutorial from Google.