nvp Posted October 8, 2020 Share Posted October 8, 2020 Bonjour à tous, Prestashop 1.7 Petite question quand on créé plusieurs sous catégories portant le même nom, il est normal que le lien de la deuxiéme sous catégorie redirige vers la première ? Merci beaucoup Link to comment Share on other sites More sharing options...
Mediacom87 Posted October 8, 2020 Share Posted October 8, 2020 Bonjour, non, car l'id de la catégorie permet de les différencier. Link to comment Share on other sites More sharing options...
doekia Posted October 8, 2020 Share Posted October 8, 2020 Si vous avez supprimé les id, oui, sinon non Link to comment Share on other sites More sharing options...
nvp Posted October 8, 2020 Author Share Posted October 8, 2020 Merci beaucoup ! Voila le mystère, il y a bien l'id de la catégorie mais si je crée x sous catégorie portant le même nom ils reviennent toujours sur la première que j'ai créé ! Link to comment Share on other sites More sharing options...
doekia Posted October 8, 2020 Share Posted October 8, 2020 qui ça "ils" ? Link to comment Share on other sites More sharing options...
nvp Posted October 8, 2020 Author Share Posted October 8, 2020 Exemple : https://www.lacabaniere.fr/29-les-menus Doit rester sur la Catégorie 29 On clique dessus on redirige vers https://www.lacabaniere.fr/20-les-menus et si je crée plusieurs titre en sous-catégorie avec le titre : les menus Et bien on sera rédirigé a chaque fois vers https://www.lacabaniere.fr/20-les-menus Link to comment Share on other sites More sharing options...
nvp Posted October 8, 2020 Author Share Posted October 8, 2020 Alors aprés il y a la solution de changer le lien html Link to comment Share on other sites More sharing options...
doekia Posted October 8, 2020 Share Posted October 8, 2020 Vérifie que tu n'aurait pas une Rewrite dans ton .htaccess Link to comment Share on other sites More sharing options...
nvp Posted October 8, 2020 Author Share Posted October 8, 2020 Pourtant rien de spécial : # ~~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> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on #Domain: www.lacabaniere.fr RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api$ api/ [L] RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] 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] 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] 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] 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] 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] 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] RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/font-woff .woff AddType font/woff2 .woff2 <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </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" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType font/woff2 "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> <IfModule mod_headers.c> Header unset Etag </IfModule> FileETag none <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype image/svg+xml </IfModule> </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 Link to comment Share on other sites More sharing options...
doekia Posted October 8, 2020 Share Posted October 8, 2020 Alors une override de dispatcher $ wget -S 'https://www.lacabaniere.fr/index.php?controller=category&id_category=29' -O /dev/null --2020-10-08 14:59:05-- https://www.lacabaniere.fr/index.php?controller=category&id_category=29 Resolving www.lacabaniere.fr (www.lacabaniere.fr)... 217.160.0.229, 2001:8d8:100f:f000::240 Connecting to www.lacabaniere.fr (www.lacabaniere.fr)|217.160.0.229|:443... connected. HTTP request sent, awaiting response... HTTP/1.1 301 Moved Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=15 Date: Thu, 08 Oct 2020 12:59:05 GMT Server: Apache X-Powered-By: PHP/7.2.33 Cache-Control: no-cache Set-Cookie: PrestaShop-fe902242b699ada37e746bb3fc7efc00=def5020060ab99565d4a636e9e5e2b911aa3d30c9a9033a04358f2141f0c8de2e365c137970af4fb4df2cbe9b7a6a5f45fdee3a69a565a0718dbe6d7fb3aa6ef055cf552b3a0fc108c25197bbe35627335287a51365877663453e9001a6c5f89029c10154890b7a4f8fbbc8f6e346937bb2bd395294e1748ed7901e563cc896d1fd600dc4bd2b65171393f7a953b7d4b846c1bd6d78318c1f54a88b2780c479d017a7d1afe9f62cdad1515e81c899ff7ab74689eb3e4169085cbdf193dc4a1d52edddd968872b29b136b7f39634a5b776750ad25f80c42fb595b5b13312898e7cc854ece236a822d84a46d2fddc5c95c27afb754b53995ffc7137f68043c41b977f3023e1b64cd08eae8d381174f7cfc477f314a8476ca7bb7712667f858; expires=Wed, 28-Oct-2020 12:59:05 GMT; Max-Age=1728000; path=/; domain=www.lacabaniere.fr; secure; HttpOnly Location: https://www.lacabaniere.fr/29-les-menus Location: https://www.lacabaniere.fr/29-les-menus [following] --2020-10-08 14:59:05-- https://www.lacabaniere.fr/29-les-menus Reusing existing connection to www.lacabaniere.fr:443. HTTP request sent, awaiting response... HTTP/1.1 301 Moved Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=15 Date: Thu, 08 Oct 2020 12:59:05 GMT Server: Apache X-Powered-By: PHP/7.2.33 Cache-Control: no-cache Location: https://www.lacabaniere.fr/20-les-menus Location: https://www.lacabaniere.fr/20-les-menus [following] --2020-10-08 14:59:05-- https://www.lacabaniere.fr/20-les-menus Reusing existing connection to www.lacabaniere.fr:443. HTTP request sent, awaiting response... HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=15 Date: Thu, 08 Oct 2020 12:59:05 GMT Server: Apache X-Powered-By: PHP/7.2.33 Length: unspecified [text/html] Saving to: ‘/dev/null’ /dev/null [ <=> ] 50.54K --.-KB/s in 0.04s 2020-10-08 14:59:06 (1.22 MB/s) - ‘/dev/null’ saved [51756] Link to comment Share on other sites More sharing options...
nvp Posted October 8, 2020 Author Share Posted October 8, 2020 Merci énormément mais que voulez-vous dire par Alors une override de dispatcher Link to comment Share on other sites More sharing options...
doekia Posted October 8, 2020 Share Posted October 8, 2020 c'est bon puisque tu veux jouer au multi-compte, multi-sujet j'ai des trucs sérieux à faire ... adios Link to comment Share on other sites More sharing options...
nvp Posted October 8, 2020 Author Share Posted October 8, 2020 Je vous ai dit que je pensai que l'autre post n'avait pas était publié !! Effectivement c'est que j'ai fait une erreur de compte ! D'ailleurs je savais même plus que j'avais 2 comptes ! Sympa !!! 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