This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 0 replies, has 1 voice.
Last updated by ronaldT-5 1 day, 12 hours ago.
Assisted by: Shekhar Bhandari.
Author | Posts |
---|---|
December 27, 2024 at 8:21 am #16548108 | |
ronaldT-5 |
Background of the issue: Symptoms: Questions: |
December 27, 2024 at 9:37 am #16548292 | |
Shekhar Bhandari Supporter
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, Can you disable the WordPress guess redirects and see if the problem solves on your end. You can add the following code to your functions.php, once saved go to settings->permalinks, update the permalinks and see if it helps add_filter('do_redirect_guess_404_permalink', '__return_false'); Look forward to your reply. Thanks |
December 27, 2024 at 4:14 pm #16548917 | |
ronaldT-5 |
Interesting! I never received an email notification about your reply. The functions.php code offered here is how I can disable guess redirects? Where to add the code within functions.php file? If I input it at the end of the file, as follows, it literally crashes my site: /** Looking forward to your reply. |
December 27, 2024 at 7:22 pm #16549142 | |
ronaldT-5 |
Shouldn't there be a closing parenthesis at the end of the code as well as an end quote?? add_filter('do_redirect_guess_404_permalink') |
December 27, 2024 at 7:27 pm #16549174 | |
ronaldT-5 |
Here's what I found on the Internet of things: Disable 404 redirect guessing The do_redirect_guess_404_permalink filter can now be used to completely disable redirect guessing. Returning false to the filter will disable the feature entirely. Example 1 |
December 27, 2024 at 7:47 pm #16549186 | |
ronaldT-5 |
Okay, I just tried the new code. It works, but only partially. For whatever reason, Yoast SEO adds a slash (/) before the HTTPS: |