• Resolved herzla

    (@herzla)


    hi there
    I have a WordPress that is reachable vie multiple domains using ‘Multiple Domain’ plugin and my header looked like this:

    <link href='https://fonts.gstatic.com' crossorigin rel='preconnect' />
    <link rel="alternate" type="application/rss+xml" title="mydomain.org &raquo; Feed" href="https://www.mydomain.org/feed/" />
    <link rel="alternate" type="application/rss+xml" title="mydomain.org &raquo; Comments Feed" href="https://www.mydomain.org/comments/feed/" />
    <link rel='stylesheet' id='twentysixteen-fonts-css'  href='https://fonts.googleapis.com/css?family=Merriweather%3A400%2C700%2C900%2C400italic%2C700italic%2C900italic%7CMontserrat%3A400%2C700%7CInconsolata%3A400&subset=latin%2Clatin-ext&display=fallback' media='all' />
    <link rel='stylesheet' id='genericons-css'  href='https://www.mydomain.org/wp-content/themes/crypto/genericons/genericons.css?ver=3.4.1' media='all' />
    <link rel='stylesheet' id='twentysixteen-style-css'  href='https://www.mydomain.org/wp-content/themes/crypto/style.css?ver=20190507' media='all' />
    <link rel='stylesheet' id='twentysixteen-block-style-css'  href='https://www.mydomain.org/wp-content/themes/crypto/css/blocks.css?ver=20190102' media='all' />
    <script src='https://www.mydomain.org/wp-includes/js/jquery/jquery.min.js?ver=3.6.0' id='jquery-core-js'></script>
    <script src='https://www.mydomain.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2' id='jquery-migrate-js'></script>
    <link rel="https://api.w.org/" href="https://www.mydomain.org/wp-json/" /><link rel="alternate" type="application/json" href="https://www.mydomain.org/wp-json/wp/v2/pages/40" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.mydomain.org/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://www.mydomain.org/wp-includes/wlwmanifest.xml" /> 
    
    <link rel="canonical" href="https://www.mydomain.org/about/" />
    <link rel='shortlink' href='https://www.mydomain.org/?p=40' />
    <link rel="alternate" type="application/json+oembed" href="https://www.mydomain.org/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.mydomain.org%2Fabout%2F" />
    <link rel="alternate" type="text/xml+oembed" href="https://www.mydomain.org/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.mydomain.org%2Fabout%2F&format=xml" />
    <link rel="alternate" href="https://www.mydomain.org/about/" hreflang="x-default" /><!-- Analytics by WP Statistics v13.2.6 - https://wp-statistics.com/ -->

    no I started to remove all this alternate- and canonical-links using

    remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
    remove_action( 'wp_head', 'rel_canonical' );
    remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
    remove_action( 'wp_head', 'feed_links_extra', 3 );
    remove_action( 'wp_head', 'feed_links', 2 );
    remove_action( 'wp_head', 'rsd_link' );
    remove_action( 'wp_head', 'wlwmanifest_link' );
    remove_action( 'wp_head', 'index_rel_link' );
    remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
    remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
    remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
    remove_action( 'wp_head', 'wp_generator' );
    add_filter('wp_statistics_html_comment', '__return_false');

    the header got a smaller now but I don’t get the last <link rel=”alternate”… removed:

    <meta name='robots' content='max-image-preview:large' />
    <link rel='dns-prefetch' href='//fonts.googleapis.com' />
    <link rel='dns-prefetch' href='//s.w.org' />
    <link href='https://fonts.gstatic.com' crossorigin rel='preconnect' />
    <link rel='stylesheet' id='wp-block-library-css'  href='https://www.mydomain.org/wp-includes/css/dist/block-library/style.min.css?ver=e036b37ee7f8b23e1b872c6db97dccaa' media='all' />
    <link rel='stylesheet' id='twentysixteen-fonts-css'  href='https://fonts.googleapis.com/css?family=Merriweather%3A400%2C700%2C900%2C400italic%2C700italic%2C900italic%7CMontserrat%3A400%2C700%7CInconsolata%3A400&subset=latin%2Clatin-ext&display=fallback' media='all' />
    <link rel='stylesheet' id='genericons-css'  href='https://www.mydomain.org/wp-content/themes/crypto/genericons/genericons.css?ver=3.4.1' media='all' />
    <link rel='stylesheet' id='twentysixteen-style-css'  href='https://www.mydomain.org/wp-content/themes/crypto/style.css?ver=20190507' media='all' />
    <link rel='stylesheet' id='twentysixteen-block-style-css'  href='https://www.mydomain.org/wp-content/themes/crypto/css/blocks.css?ver=20190102' media='all' />
    <script src='https://www.mydomain.org/wp-includes/js/jquery/jquery.min.js?ver=3.6.0' id='jquery-core-js'></script>
    <script src='https://www.mydomain.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.3.2' id='jquery-migrate-js'></script>
    <link rel="alternate" href="https://www.mydomain.org/about/" hreflang="x-default" />
    

    WP Statistics, WP-Optimize, All In One WP Security are installed
    anything i shoud have a look at to solve this?
    thanks mates

    • This topic was modified 2 years, 2 months ago by herzla.
    • This topic was modified 2 years, 2 months ago by Jan Dembowski.
    • This topic was modified 2 years, 2 months ago by Jan Dembowski.
    • This topic was modified 2 years, 2 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove the last <link rel="alternate" …’ is closed to new replies.