[Resolved] German language translation will redirect to homepage
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing an issue where the German language translation of your page redirects to the homepage, Solution: We have identified that the problem is due to a specific file being loaded from the cache. This missing file causes the redirection to the homepage. To fix this, you should: 1. Clear all caches on your website, including any server cache and CDN services. 2. Ensure that the problematic cached file is completely removed. 3. If necessary, contact your Server/Hosting Administrator to help locate and clear the specific cached file. After these steps, the redirection issue should be resolved.
If this solution doesn't seem relevant to your situation, please don't hesitate to open a new support ticket with us.
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.
I understand the issue you're having and will try my best to assist you in this matter.
Based on the video, it appears that there's a redirection occurring to the '/.well-known' directory. Since this directory does not contain the requested content, you are being redirected to the default homepage.
From the WPML Debug Info, I can see that you are using the 'Redirection' plugin. Could you please verify if there are any redirections set for the German version of that post? If you find any, kindly delete them, clear the caches, and then recheck.
If no redirection is set there, please try the following steps and check if that helps to solve the issue.
- Navigate to the root directory of your site using the File Manager in your hosting control panel.
- You'll find a file name '.htaccess'. Open the file in Editor.
- Copy the contents within it and save it on your Computer
- Now, replace the htaccess rules with the default rule mentioned here: https://wordpress.org/documentation/article/htaccess/#basic-wp
- Save the changes, clear the caches, and try to access the German version of the post again.
Please let me know the update. I will be happy to help if you need further assistance in this matter.
Could you please confirm if you have checked the redirection set within the 'Redirection' plugin (hidden link)? If possible, please deactivate all plugins of your site except for Elementor, WPML, and its add-ons, and check again. If that solves the issue, start activating the plugins one by one and continue to check when the issue reappears if you access the German translation. In this way, you'll be able to pinpoint the plugin that is causing the issue. Before the plugin conflict test, make sure to take a backup of the site.
If the issue persists even after that, a closer inspection will be required to understand the root cause of the issue.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.
You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Hello There,
Thank you for sharing the access information.
After a detailed examination, I discovered that a specific file, which is being loaded from the cache, is at the root of the issue. Since this file is missing, it results in a redirection to the Homepage. To clarify the issue and demonstrate how I traced it, I've created a video. For a clearer understanding, please watch this video: hidden link.
To resolve the issue, it's crucial to thoroughly clear the caches from your website, server, and any CDN services in use. Make sure that the problematic file is completely removed. Additionally, you can contact your Server/Hosting Administrator for assistance in locating and clearing that specific cached file. The issue should be resolved once the file is successfully removed from the cache.
Let me know if that helps or if you need further assistance in this matter. I will be happy to help.