When going to url hidden link it redirects to hidden link
This only happens when logged in. I've disabled caching and plugins to solve the issue but it's still there.
I'm not logged in and I can reproduce the issue. As you can see on that link, there is a redirect 301: hidden link
Let's try to identify the source of that redirect:
1. Redirections
- You have a plugin called "Redirection" let's start here. Check if there is a redirection created here or disable this plugin for a moment and try to access the NL homepage.
- Same thing for Yoast SEO, I think that plugin has also a redirection functionality.
- Check your .htaccess file to make for redirections too.
2. WordPress has a hard time to resolve the URL
- Then try to disable all plugins that could alter your URLs: "No Category Base (WPML)", "Premmerce Permalink Manager for WooCommerce"
3. Is the translation published?
- That should be the issue, because when you're logged in as admin you can see drafts on the frontend but just to be sure, please go to "Pages" switch to NL and check if the NL homepage is published.
4. Random error
- Switch back to English
- Go to "Settings > Reading" and resave your static homepage
- Go to "Settings > Permalinks" and resave your permalinks
If the issue appears randomly it will be hard to spot.
Few clarifications:
- The issue is not only when logged in. As I mentioned in my previous answer, I was able to reproduce the issue and if you click on the link I shared you will see that redirect 301.
- Right now the issue is not there anymore. I can access the NL homepage (I tried on Chrome, Firefox and Edge with and without trailing slash).
When the issue appears again, can you tell me if any of the actions mentioned above (like re-saving permalinks) solves this or it simply comes and goes and nothing I recommended worked?
The topic ‘[Closed] 2nd language home redirects to primary language’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.