{"id":1314,"date":"2020-05-12T21:13:07","date_gmt":"2020-05-12T19:13:07","guid":{"rendered":"https:\/\/voneff.de\/?p=1314"},"modified":"2020-05-18T21:02:48","modified_gmt":"2020-05-18T19:02:48","slug":"wpml-vs-seopress-fixing-a-home-page-301-redirection-error","status":"publish","type":"post","link":"https:\/\/voneff.de\/en\/wpml-vs-seopress-fixing-a-home-page-301-redirection-error\/","title":{"rendered":"WPML vs. SEOPress: Fixing a Home Page 301 Redirection Error"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I encountered some strange behavior on a multi-lingual website today. The website was running <a href=\"https:\/\/wpml.org\/\">WPML<\/a> for the multi-lingual functionality, and the different languages were set up to appear in subfolders such as <code>fancypants.com\/ru<\/code> or <code>fancypants.com\/fr<\/code>. The original language was shown on the base URL <code>fancypants.com<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What was happening? Multi-lingual content on any sub-page or post was displaying just fine. The subfolder URLs such as <code>\/ru<\/code> and <code>\/fr<\/code> were redirecting to the base URL instead of showing the translated home pages, though.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What did I do to eliminate the problem?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I did a number of things to get to the root of this, among others:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Reset the permalinks  \u2192  no effect<\/li><li>Switched the home page to a different page to if the problem persisted \u2192 it did<\/li><li>Deactivated the popular <a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\">Redirection<\/a> plugin  \u2192  no change<\/li><li>Used an online redirection checker tool like <a href=\"http:\/\/www.redirect-checker.org\/index.php\">redirect-checker.or<\/a>g to find out what was happening  \u2192  the translated home pages were really giving out a <code>301  redirect Moved Permanently<\/code> signal \ud83d\ude2d<\/li><li>Generated a new clean <code>.htaccess<\/code> file by first renaming the old one and then resetting the permalinks through the WP Dashboard  \u2192  nothing to be gained here either<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What was the root cause of the problem?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every so often, conflicts between plugins are causing problems. So, I went to through the rather monotonous &nbsp;process of deactivating all plugins and reactivating them one-by-one to see if the problem persisted. And with this, I finally found the culprit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the website in question, my go-to Yoast alternative <a href=\"https:\/\/wordpress.org\/plugins\/wp-seopress\/\">SEOPress<\/a> was running (with the additional Pro version). SEOPress has its own redirection functionality but from my experience its performance and handling is inferior to the aforementioned <a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\">Redirection<\/a> plugin. Therefore, I never use it and just ignore it. Also in this case: there was no redirect setup here. But: the extension was active. SEOPress has this nice function where you can easily toggle various functions of the plugin on or off.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And the solution was really easy: I had to deactivate the \u201cRedirections\u201d functionality of SEOPress via its <em>Dashboard<\/em> and the unintended redirections of the multi-lingual home pages were gone. Bug or feature? I\u2019d say: \ud83d\udc1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Have you run into similar troubles? Are you part of the WPML fanbase or do you rather despise it? Let me know in the comments!<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Update on 18 May 2020: SEOPress fixed this bug in version 3.8.6.2\u00a0 of its Pro addon plugin. Check <a href=\"https:\/\/www.seopress.org\/changelog\/\">the change log<\/a> and make sure you update before writing any blog posts! \ud83d\ude02<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><small>The header illustration is based on an image released by <a href=\"https:\/\/craftwork.design\/\">Craftwork<\/a> on <a href=\"https:\/\/error404.fun\/\">error404.fun<\/a>. Lettering is based on the font <a href=\"https:\/\/fonts.adobe.com\/fonts\/monotalic\">Monotalic by Kostic Type Foundry<\/a>. The illustration here on this page is published under a <a href=\"https:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\">Attribution-ShareAlike License (CC BY-SA 4.0)<\/a>. <\/small> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, these plugins just don\u2019t wanna play nice with each other. Here\u2019s a quick fix.<\/p>\n","protected":false},"author":1,"featured_media":1325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_titles_title":"","_seopress_titles_desc":"Sometimes, these plugins just don\u2019t wanna play nice with each other. Here\u2019s a quick fix.","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"none","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"https:\/\/voneff.de\/wp-content\/uploads\/2020\/05\/voneff-blog-WPML-vs-SEOPRESS-301-1640x856-v02.jpg","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":301,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[{"url":"","title":"","desc":"","thumbnail":"","duration":"","rating":"","view_count":"","tag":"","cat":""}],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"wpf_show_in_dewp_planet_feed":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[299],"tags":[223,300,301,128,132],"class_list":["post-1314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-quick-tips","tag-projekt26","tag-bugfixing","tag-redirections","tag-wordpress","tag-wpml"],"acf":[],"_links":{"self":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/1314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/comments?post=1314"}],"version-history":[{"count":15,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/1314\/revisions"}],"predecessor-version":[{"id":1340,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/posts\/1314\/revisions\/1340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/media\/1325"}],"wp:attachment":[{"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/media?parent=1314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/categories?post=1314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/voneff.de\/en\/wp-json\/wp\/v2\/tags?post=1314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}