Home›Support›English Support›[Resolved] product-category and product base url doesn't work when using a separate domain for the translation
[Resolved] product-category and product base url doesn't work when using a separate domain for the translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is setting up WPML for an English ecommerce store and experiencing issues when running the German translation on a separate domain. After configuring the domain to domain-name.de, products fail with a 'domain-name redirected you too many times.' error, and product categories trigger a 404 page with a strange URL. The product category structure is not correctly translated, and there is an unexpected '/e' added in the URL. Solution: We recommended deactivating all plugins except WPML, WPML Multilingual & Multicurrency for WooCommerce, and checking if the issue persists. This problem might be related to a known issue with WooCommerce Multilingual which causes too many redirects when using shop base with category permalinks. We advised the client to ensure they are using the latest version of WPML Multilingual & Multicurrency for WooCommerce, which includes a fix for this issue.
The client checked the .htaccess file and found the rewrite rules that triggered the redirect loop.
If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket.
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.
Background of the issue:
I am setting up WPML for an English ecommerce store and experiencing issues when running the German translation on a separate domain. Initially, I installed WPML and translated the site to German with languages configured to 'Different languages in directories'. The German language loaded in /de and everything worked fine. After moving the site to the production server with a separate domain for German, I configured the domain to domain-name.de.
Symptoms:
Products fail with a 'domain-name redirected you too many times.' error and product categories trigger a 404 page with a strange URL. The product category structure on the base English language is /product-category/vests/, and the German structure should be /produkt-kategorie/westen/. However, clicking a link to a category produces /product-category/e/westen/. Deleting the URL slug for product in the WordPress domain allows clicking a product but uses the English URL structure. Saving the permalinks changes the product URL to /produkt.
Questions:
Why is the category not translated and why is there an /e added in the URL?
How can I resolve the 'domain-name redirected you too many times.' error?
Why do product categories trigger a 404 page?
How can I ensure the German URL structure is used for products and categories?
Before contacting support I googled a lot of related issues on your support forum - I found similar issues, but nothing worked.
I created a similar support task earlier today, went through troubleshooting with Maiya and was forwarded to a human support agent - waited for 10 minutes for the initial reply and then didn't see the response and the agent closed the task - so I started all over with this task.
Does the issue persist if you temporarily deactivate all plugins except WPML, WPML Multilingual & Multicurrency for WooCommerce, and Multicurrency for WooCommerce?
Hi Andrey, thanks for getting back. I think the issue is related to WPML Multilingual & Multicurrency for WooCommerce not being registered or working properly.
Following the troubleshooting with Maiya yesterday I updated WPML and the WPML Multilingual & Multicurrency for WooCommerce a minor version. Since the I no longer see the plugin in the WooCommerce dropdown menu.
I can still access the plugin, clicking settings from the plugin overview (hidden link )
When I initially installed WPML and went through the installation guide I recall that the WPML Multilingual & Multicurrency for WooCommerce wizard didn't launch automatically and also didn't show in the WooCommerce dropdown menu. I activated automatic translation and wondered why "Products" didn't show in the translation dashboard.
I found the URL to trigger the wizard and went through the WooCommerce setup and the products group then showed in the translation dashboard.
Does the above description help in any way?
Else I will progress with your suggestion to disable all plugines - I'm just a little hesitant, disabling all plugins since I believe some plugins require Elementor to be installed and can cause the site not to load.
Disregard my last point about the plugin WPML Multilingual & Multicurrency for WooCommerce not showing in the WooCommerce menu - I just realized that the name was changed to WCML in the dropdown menu.
After deactivating all plugins and still experiencing the error, I checked the .htaccess file and found all rewrite rules that triggered the redirect loop. I think everything works now.