Yoh44271 Posted August 3, 2009 Share Posted August 3, 2009 Bonjour,Lorsque j'active l'URL rewritting les images de mes produits disparaissent. Voici mon .htaccess ci-dessous :AddType x-mapp-php5 .phpAddHandler x-mapp-php5 .php# URL rewriting module activationOptions +FollowSymLinksRewriteEngine onRewriteBase /# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpJ'aimerais vraiment l'utiliser pour le référencement. Link to comment Share on other sites More sharing options...
Alekhine Posted August 3, 2009 Share Posted August 3, 2009 Hello,je n'ai aucun souci chez 1and1..Si vous utilisez la version 1208 il faut générer le .htaccess (Outils/Générateurs) et éditer immédiatement le .htaccess pour rajouter les lignes concernant l'activation de PHP5 (car le générateur va les virer). Link to comment Share on other sites More sharing options...
Yoh44271 Posted August 3, 2009 Author Share Posted August 3, 2009 Un grand Merci, ça fonctionne parfaitement Link to comment Share on other sites More sharing options...
Alekhine Posted August 3, 2009 Share Posted August 3, 2009 ok impec Pouvez-vous éditer votre premier post et ajouter [Résolu] devant le titre svp Link to comment Share on other sites More sharing options...
Ecom Posted November 13, 2009 Share Posted November 13, 2009 Bonjour J'ai exactement le même problème et rien à faire les images disparaissent.# PHP5AddType x-mapp-php5 .phpAddHandler x-mapp-php5 .phpOptions +FollowSymLinksRewriteEngine OnRewriteBase /boutique-ecommerce# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /boutique-ecommerce/404.phpAvez vous la solution?Merci. Link to comment Share on other sites More sharing options...
Ecom Posted November 24, 2009 Share Posted November 24, 2009 Toujours pas de solution. Mon url rewriting ne fonctionne pas avec 1&1;. Avez vous une solution.Merci. Link to comment Share on other sites More sharing options...
Ecom Posted December 10, 2009 Share Posted December 10, 2009 bonjour, Ca y est j'ai enfin trouvé la solution, je vous la transmets.Collez directement ce code dans votre fichier htaccess:AddType x-mapp-php5 .php# URL rewriting module activationRewriteEngine onRewriteBase /# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.php Et ensuite activez le SEO. Et ca fonctionne. Link to comment Share on other sites More sharing options...
kermocotte Posted December 10, 2009 Share Posted December 10, 2009 Salut si tu peux mettrre un fichier .txtMerci Link to comment Share on other sites More sharing options...
Ecom Posted December 10, 2009 Share Posted December 10, 2009 Et voila, il suffit de demander!Fichier htaccess-1&1;.txt. A renommer en .htaccess et a placer à la racine du site.Bon SEO. htaccess-1&1.txt Link to comment Share on other sites More sharing options...
IST77 Posted October 4, 2010 Share Posted October 4, 2010 Bonjour, merci pour la mise à dispo, après 4h00 de galère, ce .htaccess fonctionne parfaitement avec les offres windows 1and1. Link to comment Share on other sites More sharing options...
Ecom Posted October 4, 2010 Share Posted October 4, 2010 Merci pour ton retour! Ca fait toujours plaisir. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now