garywright Posted November 26, 2012 Share Posted November 26, 2012 Hi all! I recenetly installed PS on my server and installed it using IP address access (ie. without a domain name) and started to build my site. I have now purchased the domain name and set it up on my server. I changed the site URL in the admin section, deleted the .htaccess and turned off and on again the friendly URL option so a new .htaccess was generated. Now... my very first category keeps giving me a "page not found error" yet all of the other categories and products load fine? Any ideas what could have happened? Link to comment Share on other sites More sharing options...
safa Posted November 26, 2012 Share Posted November 26, 2012 hi; try this, edit category frinedy url (add some character or delete) . Link to comment Share on other sites More sharing options...
Doulas Akula Posted February 8, 2013 Share Posted February 8, 2013 I have an issue similar to this though it happens with product pages. When I click on 'more details link' I get a 404 error - page not found. The bad part of it is that it happens for some products in the catalog and not all of them. When I disable friendly urls and generate another htaccess file - the products that could not be displayed are able to be displayed and when I enable friendly url and generate htaccess file - the opposite happens - such that in either case I have part of the catalog displayed fullly. Any ideas ? Link to comment Share on other sites More sharing options...
El Patron Posted February 8, 2013 Share Posted February 8, 2013 I have an issue similar to this though it happens with product pages. When I click on 'more details link' I get a 404 error - page not found. The bad part of it is that it happens for some products in the catalog and not all of them. When I disable friendly urls and generate another htaccess file - the products that could not be displayed are able to be displayed and when I enable friendly url and generate htaccess file - the opposite happens - such that in either case I have part of the catalog displayed fullly. Any ideas ? try this, clear your browser cache and cookies...this fixes the original posters problem 85% of the time. Link to comment Share on other sites More sharing options...
Doulas Akula Posted February 8, 2013 Share Posted February 8, 2013 Clearing cookies did not help much - here is my sites url. www.mamamikes.co.ke. When you click on this link - ( http://www.mamamikes.co.ke/en/johniewalker-specials/1518-johnie_walker.html ) you get a 404 error - page not found. Though I have done some translations to be customer froendly as a short term measure. Any ideas why this could be happening - I contacted my host through a ticket and this is what he had to say -He have turned off Mod Security rules. Please check your site and let us know if the issue persists. Though when I regenerated the htaccess file - I still got the same 404 error. Link to comment Share on other sites More sharing options...
El Patron Posted February 8, 2013 Share Posted February 8, 2013 the problem (unresolved by my post) is that your bad link: http://www.mamamikes.co.ke/en/johniewalker-specials/1518-johnie_walker.html is missing the category number 36- i.e. it should be http://www.mamamikes.co.ke/en/36-johniewalker-specials/1518-johnie_walker.html uhm Link to comment Share on other sites More sharing options...
Doulas Akula Posted February 8, 2013 Share Posted February 8, 2013 Nope. Not yet solved.The category is Ok. Product pages are the one with issues. When 'more details' is clicked - all that shows up is a 404 error. Help here please. For example consider - http://www.mamamikes.co.ke/en/birthday-cakes/33-mixed-fruit-cake.html works fine but http://www.mamamikes.co.ke/en/wedding-cakes/57-wedding_cake.html does not -this two are in the same category. of cakes. I appreciate your feedback Thanks Link to comment Share on other sites More sharing options...
El Patron Posted February 8, 2013 Share Posted February 8, 2013 (edited) the problem is the same, there is it expects a category number for wedding cakes..but not for no category number... did you modify the route to category in seo 'route to products'?...should look like this..as it is now..you have products whose url that do not contain the category id... {category:/}{id}-{rewrite}{-:ean13}.html products without category id http://www.mamamikes.co.ke/en/wedding-cakes/56-wedding_cake.html Edited February 8, 2013 by elpatron (see edit history) 1 Link to comment Share on other sites More sharing options...
Doulas Akula Posted February 8, 2013 Share Posted February 8, 2013 Thanks a lot - this makes perfect sense. What I have changed though is the htaccess file. and in which case I use the generators in the back office. I have not changed code in the classess. Where can I find and fix this ? Link to comment Share on other sites More sharing options...
El Patron Posted February 8, 2013 Share Posted February 8, 2013 back office-->preferences-->seo ^ urls.. scroll down to schema of url's... it should look like this: {category:/}{id}-{rewrite}{-:ean13}.html but if you don't know where it's at, then I don't think you changed it...especially since some products have the correct url and others don't...so you got me stumped... Link to comment Share on other sites More sharing options...
Doulas Akula Posted February 8, 2013 Share Posted February 8, 2013 Thanks Elpatron - I will give it a try with custom rules in htaccess and see if that fixes the issue. Thanks a lot. Link to comment Share on other sites More sharing options...
El Patron Posted February 8, 2013 Share Posted February 8, 2013 well...I don't know how much I helped...but at least you know why the 404's...and I don't know why you would need custom rewrites..they may be your real problem...ps does not have a problem with friendly ur's...unless we mess them up. Good luck, btw, you have a very nice site... 1 Link to comment Share on other sites More sharing options...
Doulas Akula Posted February 9, 2013 Share Posted February 9, 2013 Thanks - now I know where to focus. When I find a solution I will post it here. Thanks for the help and compliments. Link to comment Share on other sites More sharing options...
trony Posted May 10, 2013 Share Posted May 10, 2013 Hi, I had the same problem, just disbaled de Friendly URL and aack activating them. Every thing working fine. 1 Link to comment Share on other sites More sharing options...
gopeppy Posted November 30, 2016 Share Posted November 30, 2016 (edited) I know this is an old thread. Might be helpful for someone search for solution.I had this similar problem when I upgraded my hosting to a new server with the same hosting provider. I had Friendly URL enabled earlier. So, I uploaded the .htaccess file from my backup and overwrote the newly generated one. This resolved the issue. I will give the contents of the .htaccess file below. Replace the DOMAIN. # ~~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.DOMAIN.com 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/x-font-woff .woff <IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add Access-Control-Allow-Origin "*" </FilesMatch> </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 Edited November 30, 2016 by gopeppy (see edit history) 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