habross Posted August 13, 2016 Share Posted August 13, 2016 Hi, I have problem with new category. Old category are ok with friendy urls and https. But If I create new category the link will redirect me to error 404 after clicking to category link. Could you help me? Link to comment Share on other sites More sharing options...
shokinro Posted August 13, 2016 Share Posted August 13, 2016 Where is your link appears? is it from a module and what is the link URL looks like? Link to comment Share on other sites More sharing options...
habross Posted August 13, 2016 Author Share Posted August 13, 2016 The problem is that the link isn´t viewed. I see category name only in back office, but in the category menu in front office I can´t see it. If I write url address of category I get error page 404. But if I write url address of other older category name the category is viewed right. Every new category have this problem. Link to comment Share on other sites More sharing options...
shokinro Posted August 14, 2016 Share Posted August 14, 2016 The category URL should be generated by PrestaShop via Link class, it is based on a specific pattern. Make sure you new category is set to visible in front store, so that it will be show up on category block. Any restrictions on customer group? Is it enabled? Have enter for all languages if you have multiple languages? What is parent category of the new categories, is the parent category visible? 1 Link to comment Share on other sites More sharing options...
habross Posted August 14, 2016 Author Share Posted August 14, 2016 Hi, I try everything. The root category is home (id:2), it is available for all customer groups and enabled in front office. The settings is the same like older categories. But it isn´t still visible in front office and it shows after writeng url address of category error 404. For example this category is ok: https://www.levny-obyvak.cz/18-kancelarske-stoly this category shows error: https://www.levny-obyvak.cz/550-ulanbatar Link to comment Share on other sites More sharing options...
shokinro Posted August 14, 2016 Share Posted August 14, 2016 it may also related to your URL rewrite rules in your .htaccess file and friendly URL field you entered for that category at category editing page. Link to comment Share on other sites More sharing options...
habross Posted August 14, 2016 Author Share Posted August 14, 2016 I edit it because of www in url address of eshop. In attachment I send you htacces file. I don´t know where is the problem. Link to comment Share on other sites More sharing options...
habross Posted August 14, 2016 Author Share Posted August 14, 2016 There I send htaccess. # ~~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.nabytkuj.czRewriteRule . - [E=REWRITEBASE:/]RewriteRule ^api$ api/ [L]RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]# ImagesRewriteRule ^([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 fancyboxRewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]# DispatcherRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ - [NC,L]RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]</IfModule>AddType application/vnd.ms-fontobject .eotAddType font/ttf .ttfAddType font/otf .otfAddType application/x-font-woff .woff<IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add 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 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 </IfModule></IfModule>#If rewrite mod isn't enabledErrorDocument 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...
vekia Posted August 15, 2016 Share Posted August 15, 2016 do you use some categoryController / dispatcher class override? Link to comment Share on other sites More sharing options...
habross Posted August 16, 2016 Author Share Posted August 16, 2016 I install only prestashop application 1.6.1.4 ang bought theme from leotheme. I don´t know. Where I can find it? The problem started after adding www to the url of eshop I think. Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted August 16, 2016 Share Posted August 16, 2016 Still not quite sure what happens but try these: - Regenerate .htaccess - Clear PrestaShop cache - Temporarily disable all caches under Performance page. And try again at front-end. Hope that helps! Tung Link to comment Share on other sites More sharing options...
habross Posted August 16, 2016 Author Share Posted August 16, 2016 Hi, I try it but anything happend. Still 404 page problem. Link to comment Share on other sites More sharing options...
Tung at RockPOS.com Posted August 17, 2016 Share Posted August 17, 2016 Quote I try it but anything happend. Still 404 page problem. Poor you! I'm sorry, I have no idea now. Link to comment Share on other sites More sharing options...
My Power Posted October 4, 2016 Share Posted October 4, 2016 I've got same problems. @habross did you resolve your problems? Link to comment Share on other sites More sharing options...
pryzmek Posted April 17, 2017 Share Posted April 17, 2017 @My Power or @habross did you resolve your problems? I've got the same Link to comment Share on other sites More sharing options...
4seasons Posted April 18, 2017 Share Posted April 18, 2017 how to delete category id in URL Link to comment Share on other sites More sharing options...
pryzmek Posted April 18, 2017 Share Posted April 18, 2017 If I remember good you can change it in Preference -> SEO & URL Link to comment Share on other sites More sharing options...
4seasons Posted April 19, 2017 Share Posted April 19, 2017 Prestashop 1.6.1.10 no change Category id and product id Link to comment Share on other sites More sharing options...
pryzmek Posted April 19, 2017 Share Posted April 19, 2017 Use module clean urls 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