Mobile app version of vmapp.org
Login or Join
Sims2060225

: 404 errors in webmaster tools on URLs containing swedish characters like å, ä ö How can I handle the Swedish, Danish and Russian characters in URLs so that Webmaster tools would stop returning

@Sims2060225

Posted in: #GoogleSearchConsole #UrlEncoding

How can I handle the Swedish, Danish and Russian characters in URLs so that Webmaster tools would stop returning 404 errors.

Note that opening the URL using the character "as is" is fine, but Google encodes the characters such as:

ä becomes %25C3%25A4 and ö becomes %25C3%25B6.

Any help would be appreciated.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

Can you correct the broken link at the source? Also, have you confirmed the source of the error is incorrect (are you sure that the link is really broken and this is not a crawler issue)?

To find out the origin of the link, click on the 404 error and then look at the "Linked From" tab. Check out the links listed there and see if the links pointing to your site are actually broken or not. If they are broken, hopefully you can correct at the source (either on your site or by reaching out to the other site).



You can also look at redirecting URLs with special characters by using regex. Here are some links to other Q&As that could help with that in htaccess:

stackoverflow.com/questions/18641871/how-to-handle-special-characters-like-and-in-htaccess-rules https://moz.com/community/q/redirecting-special-characters-in-htaccess-and-web-config#reply_149753


Though, I've also had an easier time catching these errors on the 404 error page itself. You can write server-side code to check the URL before the 404 response is fired to see if it matches one of these characters. If there is a match, redirect before the 404 is returned.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme