Google: Using A CDN & Want One Robots.txt File, Redirect Yours To The CDN

Jul 5, 2024 - 7:31 am 1 by

Google Crossing

Do you use a CDN for some or all of your website and you want to manage just one robots.txt file, instead of both the CDN's robots.txt file and your main site's robots.txt file? Gary Illyes from Google said that all you need to do is redirect your main robots.txt to the CDN and control it on the CDN.

Gary wrote on LinkedIn:

You have a CDN and you have your main site. You have two robots.txt files, one at https∶//cdn․example․com/robots.txt and one at https∶//www․example․com/robots.txt. You could have just one central robots.txt with all the rules, say on your CDN, which might help you with keeping track of all rules you need to manage. All you have to do is to redirect https∶//www․example․com/robots.txt to https∶//cdn․example․com/robots.txt and crawlers that comply to RFC9309 will just use the redirect target as the robotstxt file of https∶//www․example․com/. Weird or what.

Now, this is not an SEO ranking tip. It is just a way to keep everything under one robots.txt and not have to manage multiple. This is not going to help you rank better or anything like that.

I am now waiting to see ads for SEO services to move your robots.txt file to a CDN. Again, this does not give you any SEO benefit or ranking benefit, this is just to make it easier for you when you want to maintain one file. Of course, if you ever leave that CDN, then you need to deal with that, but it isn't much different than moving to a new host.

Forum discussion at LinkedIn.

 

Popular Categories

The Pulse of the search community

Follow

Search Video Recaps

 
Google Search Console Difficulties, Google Ranking Volatility, Zero Click Study, Google Ads & More - YouTube
Video Details More Videos Subscribe to Videos

Most Recent Articles

Google Updates

July 4th Weekend Google Search Ranking Update & Volatility

Jul 7, 2024 - 9:05 am
Search Forum Recap

Daily Search Forum Recap: July 5, 2024

Jul 5, 2024 - 10:00 am
Search Video Recaps

Search News Buzz Video Recap: Google Search Console Difficulties, Google Ranking Volatility, Zero Click Study, Google Ads & More

Jul 5, 2024 - 8:01 am
Google Search Engine Optimization

Google Search Console Performance Reports All Caught Up

Jul 5, 2024 - 7:51 am
Google Search Engine Optimization

Google: Request Indexing Does Not Change Canonicalization

Jul 5, 2024 - 7:41 am
Google Search Engine Optimization

Google: Using A CDN & Want One Robots.txt File, Redirect Yours To The CDN

Jul 5, 2024 - 7:31 am
Previous Story: Google Updated Image SEO Best Practices For Embedded Images