ced57 Posted August 3, 2010 Share Posted August 3, 2010 Bonsoir,Je souhaite activer l'url simplifié ce qui impose de créer un fichier htaccess.Mon problème est lorsque je crée ce fichier, mon site devient une simple page blanche...Savez-vous pourquoi ? Link to comment Share on other sites More sharing options...
Divine Posted August 3, 2010 Share Posted August 3, 2010 Bonsoir,Tu es chez quel hébergeur ? Link to comment Share on other sites More sharing options...
ced57 Posted August 3, 2010 Author Share Posted August 3, 2010 je suis hébergé chez OVH Link to comment Share on other sites More sharing options...
Divine Posted August 3, 2010 Share Posted August 3, 2010 Alors essayes ce fichier htaccess... fichier htaccess.zip Link to comment Share on other sites More sharing options...
Bouh Posted August 4, 2010 Share Posted August 4, 2010 Regarde de ce coté la réponse a été traité :http://forum.ovh.com/showthread.php?t=41102 Link to comment Share on other sites More sharing options...
ced57 Posted August 4, 2010 Author Share Posted August 4, 2010 en faisant ça, cela me donne l'erreur suivante 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. Link to comment Share on other sites More sharing options...
Divine Posted August 4, 2010 Share Posted August 4, 2010 En faisant quoi ? Link to comment Share on other sites More sharing options...
ced57 Posted August 4, 2010 Author Share Posted August 4, 2010 En insérant le fichier htaccess dans le dossier de ma boutique. Link to comment Share on other sites More sharing options...
Divine Posted August 4, 2010 Share Posted August 4, 2010 Ah mince, pourtant c'est le seul fichier htaccess opérationnel avec OVH que je connaisse... Désolée de ne pouvoir t'aider plus. Link to comment Share on other sites More sharing options...
ced57 Posted August 4, 2010 Author Share Posted August 4, 2010 Je vais contacter OVH.Merci pour ton aide. Link to comment Share on other sites More sharing options...
Bouh Posted August 4, 2010 Share Posted August 4, 2010 Byzar normalement ce htacess marche sur ovh ( du moins je n'ai jms rencontré de prb)curieux de savoir ce que va te dire ovh Link to comment Share on other sites More sharing options...
ced57 Posted August 4, 2010 Author Share Posted August 4, 2010 On me dit :"soit vous avez un soucis d'encodage(le fichier htaccess doit être au format Unix) soit il y a des erreurs dans vos directives"Comment convertir un fichier en Unix ?J'utilise Smultron comme éditeur. Link to comment Share on other sites More sharing options...
Bouh Posted August 4, 2010 Share Posted August 4, 2010 Voici un fichier que j'ai utilisé sur une boutique :elle est en production donc le fichier fonctionne.hebergement : OVH htacess.zip Link to comment Share on other sites More sharing options...
ced57 Posted August 4, 2010 Author Share Posted August 4, 2010 Je ne vois rien dans le fichier htaccess.Y a t'il le point devant ?Visiblement sur Mac cela n'apparaît pas... Link to comment Share on other sites More sharing options...
Bouh Posted August 4, 2010 Share Posted August 4, 2010 oui y'a un point devant ---> .htaccess Link to comment Share on other sites More sharing options...
ced57 Posted August 4, 2010 Author Share Posted August 4, 2010 Pourrais-tu l'enlever afin que je puisse le trouver dans le fichier ?Car en l'état le fichier n'apparaît pas Link to comment Share on other sites More sharing options...
Bouh Posted August 4, 2010 Share Posted August 4, 2010 Voici le contenu SetEnv REGISTER_GLOBALS 0 SetEnv PHP_VER 5 # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^([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]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.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 errors ErrorDocument 404 /404.php Link to comment Share on other sites More sharing options...
senzoa Posted April 21, 2011 Share Posted April 21, 2011 Merci merci merci Bouh Studio pour le .htaccess, rien ne fonctionnait pour moi avant, mais celui-ci m'a sauvé! Merci !! 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