Msg#: 4661723 posted 3:48 am on Apr 9, 2014 (gmt 0)
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?
Msg#: 4661723 posted 10:00 am on Apr 9, 2014 (gmt 0)
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.