Tapuscrine Posted March 5, 2011 Share Posted March 5, 2011 Bonjour à tous,J'ai installé PrestaShop dans 2 dossiers différents.1. dossier test 1 (PrestaShop™ 1.4.0.7)Il n'y a pas d'erreur dans ce dossier http://www.monsite.fr/test12. dossier test 2 (PrestaShop™ 1.4.0.14.)Lorsque je lance la fonction de génération du fichier .htaccess avec le cochage URL friendly, je me retrouve avec une erreur interne 500, et je dois enlever le fichier .htaccess pour accéder à la boutique : Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log. Cette erreur ne se produit que dans le dossier http://www.monsite.fr/test2 et uniquement si je coche "URL fridendly". Que manque-t-il au dossier test 2 ?Merci pour votre aide. Link to comment Share on other sites More sharing options...
bonbons Posted March 5, 2011 Share Posted March 5, 2011 A mon avis regarde plutôt du côté des droits Apache via httpd.conf pour ce répertoire et voir si tu as bien "AllowOverride All" Link to comment Share on other sites More sharing options...
Tapuscrine Posted March 5, 2011 Author Share Posted March 5, 2011 Merci Bonbons.J'ai échangé le fichier .htaccess qui plante par celui qui marche... et ça fonctionne.Que faut-il corriger à ce fichier-là (plus complet) pour qu'il fonctionne également ? # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE # http://www.prestashop.com - http://www.prestashop.com/forums SetEnv PHP_VER 5_TEST SetEnv REGISTER_GLOBALS 0 # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^api/?(.*)$ /magasin/webservice/dispatcher.php?url=$1 [QSA,L,E] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /magasin/img/p/$1-$2$3.jpg [L,E] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /magasin/img/p/$1-$2.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /magasin/img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /magasin/product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /magasin/category.php?id_category=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /magasin/product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /magasin/supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /magasin/manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /magasin/cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /magasin/cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /magasin/product.php?id_product=$2&isolang;=$1 [QSA,L,E] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /magasin/product.php?id_product=$2&isolang;=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /magasin/category.php?id_category=$2&isolang;=$1 [QSA,L] RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /magasin/cms.php?isolang=$1&id;_cms=$2 [QSA,L] RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /magasin/cms.php?isolang=$1&id;_cms_category=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /magasin/supplier.php?isolang=$1&id;_supplier=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /magasin/manufacturer.php?isolang=$1&id;_manufacturer=$2 [QSA,L] RewriteRule ^en/page-not-found$ /magasin/404.php?isolang=en [QSA,L] RewriteRule ^en/address$ /magasin/address.php?isolang=en [QSA,L] RewriteRule ^en/addresses$ /magasin/addresses.php?isolang=en [QSA,L] RewriteRule ^en/authentication$ /magasin/authentication.php?isolang=en [QSA,L] RewriteRule ^en/best-sales$ /magasin/best-sales.php?isolang=en [QSA,L] RewriteRule ^en/cart$ /magasin/cart.php?isolang=en [QSA,L] RewriteRule ^en/contact-us$ /magasin/contact-form.php?isolang=en [QSA,L] RewriteRule ^en/discount$ /magasin/discount.php?isolang=en [QSA,L] RewriteRule ^en/order-history$ /magasin/history.php?isolang=en [QSA,L] RewriteRule ^en/identity$ /magasin/identity.php?isolang=en [QSA,L] RewriteRule ^en/manufacturers$ /magasin/manufacturer.php?isolang=en [QSA,L] RewriteRule ^en/my-account$ /magasin/my-account.php?isolang=en [QSA,L] RewriteRule ^en/new-products$ /magasin/new-products.php?isolang=en [QSA,L] RewriteRule ^en/order$ /magasin/order.php?isolang=en [QSA,L] RewriteRule ^en/order-follow$ /magasin/order-follow.php?isolang=en [QSA,L] RewriteRule ^en/order-slip$ /magasin/order-slip.php?isolang=en [QSA,L] RewriteRule ^en/password-recovery$ /magasin/password.php?isolang=en [QSA,L] RewriteRule ^en/prices-drop$ /magasin/prices-drop.php?isolang=en [QSA,L] RewriteRule ^en/search$ /magasin/search.php?isolang=en [QSA,L] RewriteRule ^en/sitemap$ /magasin/sitemap.php?isolang=en [QSA,L] RewriteRule ^en/stores$ /magasin/stores.php?isolang=en [QSA,L] RewriteRule ^en/supplier$ /magasin/supplier.php?isolang=en [QSA,L] RewriteRule ^en/([^?&]*) /magasin/$1?isolang=en [QSA,L] RewriteRule ^fr/page-non-trouvee$ /magasin/404.php?isolang=fr [QSA,L] RewriteRule ^fr/adresse$ /magasin/address.php?isolang=fr [QSA,L] RewriteRule ^fr/adresses$ /magasin/addresses.php?isolang=fr [QSA,L] RewriteRule ^fr/authentification$ /magasin/authentication.php?isolang=fr [QSA,L] RewriteRule ^fr/meilleures-ventes$ /magasin/best-sales.php?isolang=fr [QSA,L] RewriteRule ^fr/panier$ /magasin/cart.php?isolang=fr [QSA,L] RewriteRule ^fr/contactez-nous$ /magasin/contact-form.php?isolang=fr [QSA,L] RewriteRule ^fr/bons-de-reduction$ /magasin/discount.php?isolang=fr [QSA,L] RewriteRule ^fr/historique-des-commandes$ /magasin/history.php?isolang=fr [QSA,L] RewriteRule ^fr/identite$ /magasin/identity.php?isolang=fr [QSA,L] RewriteRule ^fr/fabricants$ /magasin/manufacturer.php?isolang=fr [QSA,L] RewriteRule ^fr/mon-compte$ /magasin/my-account.php?isolang=fr [QSA,L] RewriteRule ^fr/nouveaux-produits$ /magasin/new-products.php?isolang=fr [QSA,L] RewriteRule ^fr/commande$ /magasin/order.php?isolang=fr [QSA,L] RewriteRule ^fr/details-de-la-commande$ /magasin/order-follow.php?isolang=fr [QSA,L] RewriteRule ^fr/avoirs$ /magasin/order-slip.php?isolang=fr [QSA,L] RewriteRule ^fr/mot-de-passe-oublie$ /magasin/password.php?isolang=fr [QSA,L] RewriteRule ^fr/promotions$ /magasin/prices-drop.php?isolang=fr [QSA,L] RewriteRule ^fr/recherche$ /magasin/search.php?isolang=fr [QSA,L] RewriteRule ^fr/plan-du-site$ /magasin/sitemap.php?isolang=fr [QSA,L] RewriteRule ^fr/magasins$ /magasin/stores.php?isolang=fr [QSA,L] RewriteRule ^fr/fournisseurs$ /magasin/supplier.php?isolang=fr [QSA,L] RewriteRule ^fr/([^?&]*) /magasin/$1?isolang=fr [QSA,L] RewriteRule ^es/pagina-no-encuentra$ /magasin/404.php?isolang=es [QSA,L] RewriteRule ^es/direccion$ /magasin/address.php?isolang=es [QSA,L] RewriteRule ^es/direcciones$ /magasin/addresses.php?isolang=es [QSA,L] RewriteRule ^es/autenticacion$ /magasin/authentication.php?isolang=es [QSA,L] Link to comment Share on other sites More sharing options...
bonbons Posted March 5, 2011 Share Posted March 5, 2011 RewriteRule fr/page-non-trouvee$ /magasin/404.php?isolang=fr [QSA,L]j'aurai mis :RewriteRule ^fr/page-non-trouvee$ /magasin/404.php?isolang=fr [QSA,L]idem à =RewriteRule api/?(.)$ /magasin/webservice/dispatcher.php?url=$1 [QSA,L]RewriteRule ^api/?(.)$ /magasin/webservice/dispatcher.php?url=$1 [QSA,L]mais j'ai juste regardé en gros et ne suis pas un pro du rewriting (va falloir que je m'y mette tout de même )OUPS... entre temps tu as modifié je pense ou c'est mon navigateur et les ^ sont bien là :/ Link to comment Share on other sites More sharing options...
Tapuscrine Posted March 5, 2011 Author Share Posted March 5, 2011 Le fichier était trop long et est mal sorti. J'ai modifié le message. Voici la suite. RewriteRule ^es/proveedores$ /magasin/supplier.php?isolang=es [QSA,L] RewriteRule ^es/([^?&]*) /magasin/$1?isolang=es [QSA,L] RewriteRule ^de/Seite-nicht-gefunden$ /magasin/404.php?isolang=de [QSA,L] RewriteRule ^de/Adresse$ /magasin/address.php?isolang=de [QSA,L] RewriteRule ^de/Adressen$ /magasin/addresses.php?isolang=de [QSA,L] RewriteRule ^de/Authentifizierung$ /magasin/authentication.php?isolang=de [QSA,L] RewriteRule ^de/Verkaufshits$ /magasin/best-sales.php?isolang=de [QSA,L] RewriteRule ^de/Warenkorb$ /magasin/cart.php?isolang=de [QSA,L] RewriteRule ^de/Kontaktieren Sie uns$ /magasin/contact-form.php?isolang=de [QSA,L] RewriteRule ^de/Discount$ /magasin/discount.php?isolang=de [QSA,L] RewriteRule ^de/Bestellungsverlauf$ /magasin/history.php?isolang=de [QSA,L] RewriteRule ^de/Kennung$ /magasin/identity.php?isolang=de [QSA,L] RewriteRule ^de/Hersteller$ /magasin/manufacturer.php?isolang=de [QSA,L] RewriteRule ^de/mein-Konto$ /magasin/my-account.php?isolang=de [QSA,L] RewriteRule ^de/Neue-Produkte$ /magasin/new-products.php?isolang=de [QSA,L] RewriteRule ^de/Bestellung$ /magasin/order.php?isolang=de [QSA,L] RewriteRule ^de/Bestellungsverfolgung$ /magasin/order-follow.php?isolang=de [QSA,L] RewriteRule ^de/Bestellschein$ /magasin/order-slip.php?isolang=de [QSA,L] RewriteRule ^de/Kennwort Wiederherstellung$ /magasin/password.php?isolang=de [QSA,L] RewriteRule ^de/Preise-fallen$ /magasin/prices-drop.php?isolang=de [QSA,L] RewriteRule ^de/Suche$ /magasin/search.php?isolang=de [QSA,L] RewriteRule ^de/sitemap$ /magasin/sitemap.php?isolang=de [QSA,L] RewriteRule ^de/Shops$ /magasin/stores.php?isolang=de [QSA,L] RewriteRule ^de/Zulieferer$ /magasin/supplier.php?isolang=de [QSA,L] RewriteRule ^de/([^?&]*) /magasin/$1?isolang=de [QSA,L] RewriteRule ^it/pagina-non-trovata$ /magasin/404.php?isolang=it [QSA,L] RewriteRule ^it/indirizzo$ /magasin/address.php?isolang=it [QSA,L] RewriteRule ^it/indirizzi$ /magasin/addresses.php?isolang=it [QSA,L] RewriteRule ^it/autenticazione$ /magasin/authentication.php?isolang=it [QSA,L] RewriteRule ^it/vendite-migliori$ /magasin/best-sales.php?isolang=it [QSA,L] RewriteRule ^it/carrello$ /magasin/cart.php?isolang=it [QSA,L] RewriteRule ^it/contattaci$ /magasin/contact-form.php?isolang=it [QSA,L] RewriteRule ^it/sconto$ /magasin/discount.php?isolang=it [QSA,L] RewriteRule ^it/storico-ordine$ /magasin/history.php?isolang=it [QSA,L] RewriteRule ^it/identità$ /magasin/identity.php?isolang=it [QSA,L] RewriteRule ^it/produttori$ /magasin/manufacturer.php?isolang=it [QSA,L] RewriteRule ^it/il mio-account$ /magasin/my-account.php?isolang=it [QSA,L] RewriteRule ^it/nuovi-prodotti$ /magasin/new-products.php?isolang=it [QSA,L] RewriteRule ^it/ordine$ /magasin/order.php?isolang=it [QSA,L] RewriteRule ^it/seguito-ordine$ /magasin/order-follow.php?isolang=it [QSA,L] RewriteRule ^it/nota di-ordine$ /magasin/order-slip.php?isolang=it [QSA,L] RewriteRule ^it/password-recupero$ /magasin/password.php?isolang=it [QSA,L] RewriteRule ^it/riduzione-prezzi$ /magasin/prices-drop.php?isolang=it [QSA,L] RewriteRule ^it/cerca$ /magasin/search.php?isolang=it [QSA,L] RewriteRule ^it/sitemap$ /magasin/sitemap.php?isolang=it [QSA,L] RewriteRule ^it/negozi$ /magasin/stores.php?isolang=it [QSA,L] RewriteRule ^it/fornitore$ /magasin/supplier.php?isolang=it [QSA,L] RewriteRule ^it/([^?&]*) /magasin/$1?isolang=it [QSA,L] # Catch 404 errors ErrorDocument 404 /magasin/404.php ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" FileETag INode MTime Size AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript Link to comment Share on other sites More sharing options...
Tapuscrine Posted March 5, 2011 Author Share Posted March 5, 2011 Il y a pas mal d'erreurs dans la syntaxe générée par cette version 1.4.0.14 de PrestaShop.ExempleÀ la place de [_a-zA-Z0-9-]* Il vaut mieux écrire ([_a-zA-Z0-9-]*) La tâche apparait ardue !:-)Renseignement pris, le bogue a déjà été signalé.traqueur de bogues 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