Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #959930

    Hi
    As mentioned in one or two posts going back all portfolio items return a 404 error in Google Search Console for the feed URL.
    That is, for example: https://www.swarez.co.uk/modern-art-paintings-for-sale/immovable-objects/feed/

    So this URL is current: https://www.swarez.co.uk/modern-art-paintings-for-sale/immovable-objects/
    But this URL returns a 404 error: https://www.swarez.co.uk/modern-art-paintings-for-sale/immovable-objects/feed/

    I have used code from this post in my Child Theme functions.php file: https://kriesi.at/support/topic/rss-links-return-404-for-portfolio-item-on-2-sites/ which looks like this:

    add_action('wp_head','avia_remove_feed', 1);
    function avia_remove_feed(){
    if(is_single() && get_post_type() == 'portfolio') remove_action( 'wp_head', 'feed_links_extra', 3 );
    }

    But although the ‘feed’ URL is not part of the source code on any Portfolio page it is still returning a 404 error in Search Console.
    How can we deal with this once and for all?
    Many thanks
    Ed

    • This topic was modified 6 years, 7 months ago by Swarez.
    #960925

    Hey Swarez,

    Thank you for using Enfold.

    Have you tried to disallow “feeds” in the robot.txt files to prevent crawlers from indexing them?

    Disallow: /feed/
    

    Best regards,
    Ismael

    #961388

    Hi Ismael
    That would be the easy way but I do not want to disallow feeds.
    Surely there must be a solution for this as it’s been hanging around for a couple of years now?
    Can you help?
    Many thanks
    Ed

    #962927

    Hi,

    The feed returns 404 because it doesn’t exist which is ok. It’s the same as when you access a page like so.

    (see private field)

    It tells google that it’s not a real page so it’s not going to be included in the search results. If you want, you can also redirect these 404 pages to a custom page. You can set that in the Enfold > Theme Options > Error 404 Page.

    Best regards,
    Ismael

    #963383

    Hi Ismael
    That’s not really an ideal solution though is it?
    Is the theme generating /feed URL’s for Portfolio items or not? If it is it needs removing.
    If not then where is Google getting the link URL from? It says it’s from the relative portfolio URL!
    I have 350 Portfolio items and do not intend to do 350 redirects and I shouldn’t have to – so there must be a better solution…
    Can you advise on these points please?

    FYI – It’s poor SEO practice to send 404’s to a generic custom page – that does not benefit the user experience. Each should be dealt with on its own merit, if indeed this is what you’res suggesting…
    Kind regards
    Ed

    #964071

    Same problem here. Anyone?

    #964619

    Hi,

    No, the theme doesn’t generate those feeds. WP automatically assigns it to the posts.

    That’s not really an ideal solution though is it?

    If you install a plugin like “Disable Feeds”, it will give you a few options. The options are to redirect the users to html content, ISSUE A 404 PAGE and an option NOT to disable the global posts and comments feeds so I think a 404 redirect is quite valid.

    You don’t have to do a redirect for each portfolio items. Just assign a custom 404 page in the theme options and the feeds will automatically redirect to that page because they don’t exist in the first place.

    Best regards,
    Ismael

    #964993

    Thanks Ismael – I will give the plugin a go and see what happens
    Regards
    Ed

    #965289

    Hi,

    You’re welcome. Please give us an update if anything comes up. :)

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.