Este usuario no tiene temas favoritos.
Temas favoritos del foro
Temas del foro creados
Estado |
Tema
|
Colaborador | Voces | Publicaciones | Actualidad |
---|---|---|---|---|---|
Internal server error 500
Iniciado por: jureD-3
en: English Support
Problem: Solution: functions.php file of your theme: 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; } 3. Re-save the permalinks from the Settings >> Permalinks page by pressing the Save Changes button. For more details, please refer to our documentation: https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/ If the solution provided here is not relevant due to being outdated or not applicable to your case, we encourage you to open a new support ticket. We also 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 further assistance is needed, please contact us in the WPML support forum. |
|
2 | 2 | hace 1 año, 4 meses |