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.
|March 30, 2020 at 8:01 am #5791769|
Hey folks, hope everybody is doing great.
First of all, my sites use the Default Language on a subdirectory, I mean, the main site is /es/ then the english site will be /en/ and so on. The problem is:
Every time WordPress re-writes its own .htacces rules, it adds /es/ in 2 different locations and turns the site frontend inaccessible. Backend still works, then I know that it happened again.
Here's how the WordPress Section on .htaccess is when it's working:
# BEGIN WordPress
And here's how it gets every time WordPress rewrites it:
# BEGIN WordPress
Just those 2 lines - RewriteBase & RewriteRule - are having added "es/" after the correct rules, every time they're re-written. And as WP 5.x does it all the time... Imagine how I'm suffering by having the Dev sites' frontends going donw unpredictably?
Soon my WPML sites will start to go Live, and this can't be happening by then (I hope). What are WPML Developers doing - with WP Developers - to make this not happen? I'm sure this isn't a problem that can be solved by allowing WPML team to enter on its WP-Admin. It's something on the code, related with the WP 5.x re-writting its .htaccess rules.
I hope you guys realize the importance of this, since "every once in a while" - unpredictable but surely at every WP update but also other plugins may force WP to re-write those rules.
Finally, I hope we can find a way to have this fixed with WordPress Devs. Mey The Force be with you all, Jedi Knights! May The force be with You!
|March 30, 2020 at 9:53 am #5793075|
Languages: English (English ) German (Deutsch )
Timezone: Europe/Zagreb (GMT+02:00)
Thank you for contacting WPML support!
Can you perhaps check this out?
|March 30, 2020 at 10:13 am #5793323|
Olá Bruno! Thanks for your help mate!
I've added those to my child-theme's functions.php and I hope it helps. In my case it doesn't happen very oftenly (once every few days), and I hope this won't block anything from working.
BTW, I'm very (well) impressed with the latest year's evolution of WPML. Few years ago I would say it's crazy to implement on any production site. Couple years ago I felt you guys were going really on the good pace & direction.
This year, with all my sincerity, it's the first time I feel that it won't break my sites as it ever did. I know the errors were always mine, I didn't have enough trial and error experience with WPML, bit you guys have done your part.
The product is more and more stable on every update, and most of the issues I've used to have are now gone. The only uncertain point is:
I use X/Pro Theme (Cornerstone Page Builder), and I'm not yet sure what would be the best translation way. Trying both Classic & Advanced Editors I've had broken layout or full page broken (no worry I have daily Backups).
After extensively trying both Classic and Advanced Editor, I've found that the way to go is duplicate, then edit/translate using the Page Builder itself. Also some images are language-oriented so for those I'll replace with alternative image per language.
I would love to know what you WPML Specialists would say about. Thanks!