35% OFF ADDONS CODE EVOCYBER2020
Hi,
Google webmaster tools is giving me a bunch of broken links for events ( https://www.screencast.com/t/qzwOAI7yG ).
We didn’t add any new events or haven’t installed a new plugin. Any idea what is going on that this produces 404’s?
Kind regards,
Dominic
I am sorry, the access information you have provided did not work for us. Please check them and post the correct login information as a private message, thank you!
are all those events repeating events?
sometimes it is also shows old data. Try to refresh the data and check again.
Hi,
What do you mean? Refresh what?
Take this page
https://www.elsole.be/agenda/
it has the URL Google complains about https://www.elsole.be/events/gevorderde-kinderyoga-opleiding-maandag/?ri=8&
The only difference is that the one in the code looks like this
https://www.elsole.be/events/gevorderde-kinderyoga-opleiding-maandag/?ri=8&
It’s basically the same url but with “amp” attached to it.
Google has issues with these “ugly” urls. Google even drops the “amp” from the URL. Could you guys built a better url structure for this because it is not seo & Google friendly?
Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer!
so if you look here
In the source code you can see the event URL is passing repeat values since this is a repeating event and this is the most sensible way for us to pass correct link that will point to the correct repeating event in the sequence. ANd it seems google is not liking this.
So yea we will look into this to find a better solution. But yea to give you behind the scene those ri=6 are pointing to the index of the event in the repeating sequence.
And if you know any resources that would point to better ways for passing these variables in URL please let us know.
Hi Ashan,
Mhh, we are both getting different results.
The URL you see is
https://www.elsole.be/events/gevorderde-kinderyoga-opleiding-maandag/?ri=6&
What I see is
https://www.elsole.be/events/gevorderde-kinderyoga-opleiding-maandag/?ri=6&
Google tells me the following URL leads to a 404 and is present in the code (Google seemingly has issues with “amp” at the end of URLs).
https://www.elsole.be/events/gevorderde-kinderyoga-opleiding-maandag/?ri=6&
When I fetch as Google in webmaster tools I see this url (same as what I see)
https://www.elsole.be/events/gevorderde-kinderyoga-opleiding-maandag/?ri=6&
The way you write URLs (with a query) is correct for seo.
What I and Google see in the code of the site is not seo friendly.
Any suggestions?
Thank you for taking the time.
Kind regards,
Dominic
I am sorry all the links you referred to in your answer are the same? Are you also seeing bad URL in your website code? please send screenshot. Because I see your URL correct in your website code.
indeed my fault they are all the same but they shouldn’t
Please find screenshots in attachment
Ok so these are not the HTML source from your website but rather how google interpret your website code? correct?
screenshot 1 are the errors webmaster tools gives me
screenshot 2 is how I see the source code in chrome when I’m not logged in
screenshot 3 is a duplicate (sorry about that)
screenshot 4 is the results I get when I fetch the website code as Google (in webmaster tools) and this is how Google sees the code.
Basically google and me see see the same, you on the other hand see something different than us for some reason.
Google also has issues with the amp at the end of the URLs which leads to 404’s.
If the code did contain the queries like you intended it than we would not have an issue.
Any suggestions on how to handle this?
I am not sure what to tell you my friend as you can see from my screenshot the link look correct and clean.
So your alternate solution would be to avoid using repeating events and create individual event for each repeating event. Other than that I am not sure what else to tell you unfortunately.
We will keep this in mind going forward to hopfully find a better alternate way to present event URLs.
Cheers!
Dominic welcome back after 6 months 🙂 we have not put much resources to find a solution as most of our resources are exhausted on other parts of development. With WordPress permalink structure it does involve lot more customizations to get rid of amp; — anyways this is on our task list so we will take a look at this later time.
Cheers!
Hi Ashan,
Thanks for the reply.
Looking forward to the fix.
Ps: even the ticket system drops the amp at the end of URLs inside the code tag :p
Kind regards,
Dominic
Thanks mate, i did look into permalinks for a few and was getting nowhere will get back to it and will do my best to find you a solution!
Thank you for looking into this Ashan.
I have an other request that will actually solve this issue.
Would it be possible to remove the reference in the calender to the single (repeating) event?
<a itemprop='url' href='https://www.elsole.be/events/...
Example: https://www.elsole.be/events/groot-ouder-en-kind-yoga-zondag/?ri=5
She doens’t use the single event page cards at all (noindex) so there’s doens’t seem to be any need to reference to those pages in the code.
If you could give me the php code to filter this out I can put it in functions.php.
Thank you very much for your time and help.
I suppose you can try something like this, this will redirect to homepage when those single events were accessed by direct url. Also the repeat instance in URL is still in our radar 🙂
<?php
add_action( 'template_redirect', 'wpse_128636_redirect_post' );
function wpse_128636_redirect_post() {
$queried_post_type = get_query_var('post_type');
if ( is_single() && 'ajde_events' == $queried_post_type ) {
wp_redirect( home_url(), 301 );
exit;
}
}
?>
Hi Ashan,
Just letting you know it works and seems to resolve the 404’s we where experience in Search Console (knock on wood).
Thank you for the help.
Hey,
We are happy it works and give a solution. Ashan will keep working on the URL structure.
Thank you very much for your patience and time!
If you have a moment, we would greatly appreciate if you could kindly leave us a review at codecanyon! from your account > downloads. Cheers!