How can I remove these two links from the WP header?
<link rel='https://api.w.org/' href='http://xxx/wp-json/' />
<link rel="canonical" href="http://xxx/" />
I don’t know what they are for. They just look redundant to me.
Is it possible?
How can I remove these two links from the WP header?
<link rel='https://api.w.org/' href='http://xxx/wp-json/' />
<link rel="canonical" href="http://xxx/" />
I don’t know what they are for. They just look redundant to me.
Is it possible?
Comments are closed.
Meta
rel="canonical"
is printed byrel_canonical
function, plugged intowp_head
action inwp-includes/default-filters.php
(line 237 in WP 4.4), soshould do it.
For api (also plugged in that file, line 213) the code would be
I don’t know what the api meta means, but I’m quite sure that canonical should help you with SEO.