Title: Fix .htaccess WPML language
Author: David Garcia
Published: <strong>Oktòb 30, 2023</strong>
Last modified: Oktòb 30, 2023

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/fix-htaccess-wpml-language.svg)

# Fix .htaccess WPML language

 By [David Garcia](https://profiles.wordpress.org/sultanicq/)

[Download](https://downloads.wordpress.org/plugin/fix-htaccess-wpml-language.zip)

 * [Details](https://hat.wordpress.org/plugins/fix-htaccess-wpml-language/#description)
 * [Reviews](https://hat.wordpress.org/plugins/fix-htaccess-wpml-language/#reviews)
 *  [Installation](https://hat.wordpress.org/plugins/fix-htaccess-wpml-language/#installation)
 * [Development](https://hat.wordpress.org/plugins/fix-htaccess-wpml-language/#developers)

 [Support](https://wordpress.org/support/plugin/fix-htaccess-wpml-language/)

## Description

The problem actually comes from certain third-party plugins calling flush_rewrite_rules(
true) function too often. This causes WordPress to overwrite .htaccess. However,
in some cases, this happens so often, sometimes even on every page request, that
it’s called while browsing the front-end in another language.

When this happens, WPML goes ahead and adds the language folder to home_url as usual.
This, however, results with an incorrect RewriteBase in .htaccess and ends up breaking
the front-end.

Additionally, you’ll get a 500 Internal Server Error error.

And this is what we’ll see in server logs:

AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration
error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel
debug’ to get a backtrace.

## Installation

 1. Install “Fix .htaccess WPML Language” either via the WordPress.org plugin directory,
    or by uploading the files to your server inside the wp-content/plugins folder of
    your WordPress installation.
 2. Activate “Fix .htaccess WPML Language” plugin via WordPress Settings.
 3. It’s done. Easy, isn’t it?

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Fix .htaccess WPML language” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ David Garcia ](https://profiles.wordpress.org/sultanicq/)

[Translate “Fix .htaccess WPML language” into your language.](https://translate.wordpress.org/projects/wp-plugins/fix-htaccess-wpml-language)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/fix-htaccess-wpml-language/),
check out the [SVN repository](https://plugins.svn.wordpress.org/fix-htaccess-wpml-language/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/fix-htaccess-wpml-language/)
by [RSS](https://plugins.trac.wordpress.org/log/fix-htaccess-wpml-language/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release.

## Meta

 *  Version **1.0**
 *  Last updated **2 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **6.3.8**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/fix-htaccess-wpml-language/)
 * Tags
 * [htaccess](https://hat.wordpress.org/plugins/tags/htaccess/)[language](https://hat.wordpress.org/plugins/tags/language/)
   [rewriterules](https://hat.wordpress.org/plugins/tags/rewriterules/)[wpml](https://hat.wordpress.org/plugins/tags/wpml/)
 *  [Advanced View](https://hat.wordpress.org/plugins/fix-htaccess-wpml-language/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/fix-htaccess-wpml-language/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/fix-htaccess-wpml-language/reviews/)

## Contributors

 *   [ David Garcia ](https://profiles.wordpress.org/sultanicq/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/fix-htaccess-wpml-language/)