{"id":179944,"date":"2023-10-30T20:46:27","date_gmt":"2023-10-30T20:46:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/fix-htaccess-wpml-language\/"},"modified":"2023-10-30T10:38:44","modified_gmt":"2023-10-30T10:38:44","slug":"fix-htaccess-wpml-language","status":"publish","type":"plugin","link":"https:\/\/test.wordpress.org\/plugins\/fix-htaccess-wpml-language\/","author":187431,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"6.3.8","requires":"4.9","requires_php":"7.0","requires_plugins":null,"header_name":"Fix htaccess WPML language","header_author":"David Garcia","header_description":"In certain cases, the .htaccess may get overwritten with the language folder.","assets_banners_color":"","last_updated":"2023-10-30 10:38:44","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.davidgarcia.es","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":641,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1329,1385,126652,103],"plugin_category":[48],"plugin_contributors":[89440],"plugin_business_model":[],"class_list":["post-179944","plugin","type-plugin","status-publish","hentry","plugin_tags-htaccess","plugin_tags-language","plugin_tags-rewriterules","plugin_tags-wpml","plugin_category-language-tools","plugin_contributors-sultanicq","plugin_committers-sultanicq"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fix-htaccess-wpml-language.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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\u2019s called while browsing the front-end in another language.<\/p>\n\n<p>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.<\/p>\n\n<p>Additionally, you'll get a 500 Internal Server Error error.<\/p>\n\n<p>And this is what we'll see in server logs:<\/p>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>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.<\/li>\n<li>Activate \"Fix .htaccess WPML Language\" plugin via WordPress Settings.<\/li>\n<li>It's done. Easy, isn't it?<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"In certain cases, the .htaccess may get overwritten with the language folder.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/179944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=179944"}],"author":[{"embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sultanicq"}],"wp:attachment":[{"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=179944"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=179944"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=179944"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=179944"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=179944"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/test.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=179944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}