I need help on setting up MaxCDN. There's a tutorial in MaxCDN about adding canonical tags using .htaccess for SEO purposes. I'm kinda dumb on this and need some advice/ help on what's all this about. From the code I can guess that it instructs .htaccess to label all those cached file with canonical tag. But that's my guess. I need some verifications from you expert. (to correct whatever wrong you see)
Currently my site is optimized by Yoast WordPress SEO and I can see the plugin adding canonical tag on every pages. Therefore do I need those extra code in .htaccess as recommended in MaxCDN's tutorial?
this solves nothing for you. it creates an environment variable based on the requested url and uses that to create a self-referring link rel canonical header. if the requested url is already canonical it doesn't need the header. you could argue that it makes sense to include self-referring link rel canonical elements in the document head to reduce damage from scrapers. this solution instead sends the header, which is transient, rather than the element, which is permanent.