Jump to content

htaccess 2 url étrange sur mon site


Recommended Posts

Bonjour à tous,

 

Après avoir généré le fichier htaccess je me rend compte qu'il me reste 2 url étrange sur mon site. La plupart de mes catégories sont bien réécrites mais j'en ai trouvé qui est réécrite de cette façon :

http://www.libertiss.com/5-tissu-patchwork-batik?mailplan=R1919023716&b0fd578348befcd597f607775eb20b06=cME7SkQRaRX6V7IJ2U3xlmzxIj7yK0ZTYFo0jOSL6m0POy4QcuIG2%2BK6SwzXC8moPeeiW6gJA5Ucv9mFvIBJSdekoXGxTJ0M5OMEOyOkxHnQAxSiZaTecYYM4WFq%2Fr1SU%2BO1r94OMnBTc1NovuvkHSJtay6JV9KrsKA0wCPtA0xXBuPfemdnFCbghvCYJXOo9RHhpHla4qGrks6Dycr3j8Jckp1ZFqMHQvHEeA%2BM5wJaPSyxI5h44Bh30YPtY6q0MJ5m4vEFccHeJ%2BEni1wvRIv48ET8%2Fwa6BFOayP6I%2FSkx5zsXwfVq14r5gCczps1j71A7GA7lvnbrx5chTEL6XRuW44rPHpt73uBVbz3cLJWxSwVfPApBQ1pfWBbN8xRKj%2F8ymYPe%2BQbXXcTBtLMze44Nw1Qnn6lLAy1LZkKY1I6hL%2FtN6lPQUCWjToEyhZ4%2F000332&__utma=72693134.547570486.1353924307.1354007446.1354009959.4&__utmc=72693134&50ea9bef4d07776368a04b190a074a4e=cME7SkQRaRX6V7IJ2U3xlphjzi1IgMCtz2BYmd1fqb4EXcGfK980wD2afYHkIbS9lhb2%2BYRSqQJdYawyX%2B6d%2Fzfy45%2F8Dj%2Bovc1H3btl75cJg6SEz0nlt0l2b90mZScB%2BRIigi8K8GEtbqSc4ZMgqPzP%2FvUhnh4hey5XRhstvXCjLmMVYoPCrn1FqOB6oAGlPd7hcKqXf3ap5VWO4x887K%2Fr%2FDVUoo6m9mIeu%2F2qGdGelpaOh29mlZ1XktWOPQ9DnOuTevtoOipkfqmBvbZzssbAPtYlKlDM%2FRrRoIXkybxPDLaCChSIaNEyX9Arjsbk0vnFGjybJYUgFjd3A2IrFjsIHzHLPbFCPRBH9uIKkTrD%2BOvdJXpgsd8lGaMYBMSYd4frG0abTUJDAIhdnAjqQg%3D%3D000291&__utmb=72693134.1.10.1354009959

 

Qu'est-ce que le ?mailplan à la suite de mon url ????

De plus pour mon onglet nouveauté j'ai le même soucis...

Ci-dessous mon htaccess :

# Chainage des .htaccess
# ----------------------
# Les règles du .htaccess parent rules seront ajoutées à la fin de ce .htaccess!
# A places en tout début du .htaccess
RewriteOptions inherit

# Config de base
# --------------
Options -Indexes
Options -Multiviews
Options +FollowSymLinks
SetEnv REGISTER_GLOBALS 0
SetEnv PHP_VER 5
SetEnv ZEND_OPTIMIZER 1
SetEnv MAGIC_QUOTES 0
RewriteEngine On
RewriteBase /
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# Images
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^www.libertiss.com$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>
<IfModule mod_expires.c>
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"
</IfModule>
FileETag INode MTime Size
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

Merci

Link to comment
Share on other sites

Merci Erikku, effectivement après vide de mon cache pour cette url ça passe, me reste l'url des nouveautés je pense que c'est lié à mon module menu xxl, quand je survole le bouton avec la souris je vois le lien en bas de ma page firefox new-product.php déjà ça c'est pas bon ensuite quand je clique je tombe sur la page avec pour url : nouveaux-produits?mailplan=R3631134571&b0fd578348befcd597f607775e..... peut-être que quelqu'un à une idée ? Merci

Link to comment
Share on other sites

Si je rentres http://www.libertiss.com/nouveaux-produits, ca bouge pas.

Mais si je suis http://www.libertiss.com/nouveaux-produits.php, ca me donne la meme chose que toi.

Il vient d'ou ce lien? Il serait pas hard-codé par hasard? Je veux dire en HTML sans PHP?

Si tu desactives les friendly URL, je paris qu'il ne redeviens pas http://www.libertiss.com/index.php?controller=new-products.

Me goure-je?

Link to comment
Share on other sites

Merci les gars, je n'ai pas pu faire ton test Erikku je suis en train de changer d'hébergement. Je vais regarder du côté du module, j'ai envoyé un mail au développeur mais pas de réponse...

Voici la partie concerné su rle tpl :

{if $new_products_display == 1}
  <li id="categoriestopmenuxxl_news" {if $page_name == 'new-products'}class="selected"{/if} {if $tabs_display == 1}style="margin-right:5px"{/if}><a href="{$base_dir_ssl}new-products.php" {if $page_name == 'new-products'}class="selected"{/if} title="{l s='New products' mod='categoriestopmenuxxl'}">{l s='New products' mod='categoriestopmenuxxl'}</a></li>
 {/if}

Link to comment
Share on other sites

C'est ce que je disais, le lien est hard-codé...

<a href="{$base_dir_ssl}new-products.php"

J'ai pas le temps de regarder le code pour mettre un truc bien propre, mais tu peux deja essayer de remplacer

new-products.php

par:

index.php?controller=new-products

Link to comment
Share on other sites

merci les garçons, non Erikku ce n'ai pas un thème qu j'ai acheté j'ai repris le thème de base. par contre c'est le module que j'ai acheté qui est mal écrit. Ninja merci j'ai mis ton code par contre la réécriture ne se fais pas : index.php?controller=new-products

J'ai regardé dans l'onglet seo dans le BO je n'ai pas de page new-products mais une page newproducts, j'ai donc dans ton code supprimé le tirer mai cela fait pareil...

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...