Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Kor 1 week ago.

Assisted by: Kor.

Author Posts
February 19, 2025 at 7:44 am

tauziB

Background of the issue:
I was trying to fix an Internal Server Error on my WordPress site. Previously, this error was resolved by adding a specific code snippet to functions.php as recommended: add_filter('mod_rewrite_rules', 'fix_rewritebase'); function fix_rewritebase($rules){ $home_root = parse_url(home_url()); if ( isset( $home_root['path'] ) ) { $home_root = trailingslashit($home_root['path']); } else { $home_root = '/'; } $wpml_root = parse_url(get_option('home')); if ( isset( $wpml_root['path'] ) ) { $wpml_root = trailingslashit($wpml_root['path']); } else { $wpml_root = '/'; } $rules = str_replace('RewriteBase $home_root', 'RewriteBase $wpml_root', $rules); $rules = str_replace('RewriteRule . $home_root', 'RewriteRule . $wpml_root', $rules); return $rules; }
However, this solution no longer resolves the issue. The problem can be seen on this page: hidden link

Symptoms:
I expected to see the cart page, but instead, I got an Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete the request.

Questions:
Why is the previous solution no longer fixing the Internal Server Error?
What steps can I take to resolve the Internal Server Error on the cart page?

February 19, 2025 at 8:15 am
February 19, 2025 at 9:46 am #16723303

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Here is the ticket and please let me know how it went.