-
AuthorPosts
-
May 21, 2018 at 7:56 pm #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.
May 23, 2018 at 4:28 pm #960925Hey 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,
IsmaelMay 24, 2018 at 9:26 am #961388Hi 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
EdMay 28, 2018 at 5:28 am #962927Hi,
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,
IsmaelMay 28, 2018 at 6:07 pm #963383Hi 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
EdMay 30, 2018 at 9:50 am #964071Same problem here. Anyone?
May 31, 2018 at 5:15 am #964619Hi,
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,
IsmaelMay 31, 2018 at 10:39 pm #964993Thanks Ismael – I will give the plugin a go and see what happens
Regards
EdJune 1, 2018 at 1:13 pm #965289 -
AuthorPosts
- You must be logged in to reply to this topic.