Cet utilisateur n'a aucun sujet favori.
Sujets de forum favoris
Sujets de forum créés
| Statut |
Sujet
|
Support | Voix | Messages | Fraîcheur |
|---|---|---|---|---|---|
|
Element not working
Commencé par : davideM-62 dans : Assistenza in italiano |
|
0 | 6 | Il y a 2 mois et 1 semaine | |
|
Duplicating a product generates slug with wrong categories
Commencé par : davideM-62 dans : Assistenza in italiano |
|
0 | 4 | Il y a 2 mois et 1 semaine | |
|
Avoid htaccess override making website error
Commencé par : davideM-62
dans : English Support
Problem: If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we 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 problems persist, please open a new support ticket at our support forum. |
|
0 | 4 | Il y a 9 mois et 3 semaines | |
|
WPML rewriting htaccess and website goes down even with your script
Commencé par : davideM-62
dans : English Support
Problem: RewriteBase /it/ , which should be RewriteBase / . RewriteBase /it/ to RewriteBase / . If you are not using a Child Theme, consider installing one, and add the workaround to the functions.php file. <?php
/**
* Plugin Name: Custom Rewrite Rules
* Description: A custom plugin to fix and force rewrite rules to be applied correctly.
* Version: 1.0
* Author: Your Name
*/
// Hook into 'init' to ensure this runs at the right time
add_action('init', 'apply_custom_rewrite_rules', 10);
function apply_custom_rewrite_rules() {
// Apply custom mod_rewrite rules on 'mod_rewrite_rules' filter
add_filter('mod_rewrite_rules', 'fix_rewritebase');
// Flush rewrite rules on plugin activation
if (is_plugin_active('custom-rewrite-rules/custom-rewrite-rules.php')) {
flush_rewrite_rules();
}
}
function fix_rewritebase($rules) {
// Get home URL and WPML root URL (if applicable)
$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 = '/';
}
// Replace default home root with wpml root in rewrite rules
$rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
$rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);
return $rules;
}
// Force rewrite rules flush on plugin activation and deactivation
register_activation_hook(__FILE__, 'flush_rewrite_rules');
register_deactivation_hook(__FILE__, 'flush_rewrite_rules');
Save this file as custom-rewrite-rules.php and place it in /wp-content/plugins, then activate the plugin. If this solution does not resolve your issue or seems outdated, we 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 the problem persists, please open a new support ticket at https://wpml.org/forums/forum/english-support/. |
|
0 | 2 | Il y a 10 mois et 2 semaines | |
|
WPML rewriting htaccess and website goes down
Commencé par : davideM-62 dans : Chat Support |
|
0 | 2 | Il y a 11 mois | |
|
Why products have been tripled?
Commencé par : davideM-62 dans : English Support |
|
0 | 2 | Il y a 1 année | |
|
Navigation doesn’t translate
Commencé par : davideM-62 dans : English Support |
|
1 | 17 | Il y a 1 année | |
|
I just wasted 4 hours trying to translate my website. I am beyond frustration.
Commencé par : davideM-62 dans : English Support |
|
0 | 9 | Il y a 1 année | |
|
The shop page in english doesn’t display products
Commencé par : davideM-62 dans : English Support |
|
2 | 3 | Il y a 2 années et 3 mois |