radovan Posted October 25, 2012 Share Posted October 25, 2012 (edited) Hi i have a strange problem with the url rewriting. In every page when i watching the console firebug it take me one file with 404 .... GET ?controller=cart&a...2e&_=1351182236802 200 OK exeemple.cz 218 B 176.31.30.134:80 397ms GET page-not-found 404 Not Found exemple.cz 48.3 KB 176.31.30.134:80 This is in every page for exemple home page i dont understand why prestashop call 404 page and after he dont find it ? Also when i change the base url to www.exemple.com i cannot be logged from the front office. How to solve this ?? its realy strenge. Thank you. Edited October 25, 2012 by radovan (see edit history) Link to comment Share on other sites More sharing options...
Swickaar Posted October 25, 2012 Share Posted October 25, 2012 (edited) I have another type of Url rewriting problemEarlier prestashop used to have the following URL as default URL."http://www.buyatb rands.com/product.php?id_product=2677"and it used to either be like this or would have been converted to friendly URL.Now in PS 1.5.1 its being converted tohttp://www.buyatbra nds.com/index.php?controller=product&id_product=2677&__utma=22160552.154270435.1350721253.1350883085.1350970452.4&__utmz=22160552.1350721253.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29&50ea9bef4d07776368a04b190a074a4e=9A6y0qFXEIyeexKr%2FvlTXk8E1aBEYGVV8cnUr5UAnkEyumo8amq4jwxDITHVgjBg5zThDsn5TBCOcAdlpP9oIXVlfp8Z44Ktj9WR1UMcBzgy0t%2FRDQFxAcgiyDYtCdlMrHKfOij1UFRu0EVxOf0hFENec7fcGbls482UD1WUYLPlBAey3H7Ba%2BUIT1kHQLQr97dAfrmT7%2FK%2BGXVPo4Yz2rdB2dti2oaQ3TiGJTXd7BILaYzQMT98mn9O%2FSm7NxttRcQaQ4z8MRDAPNMRkrsvAiYNTX87SJz21N0ZAf0v%2BvFxE1iRwhQW3pDCpG6%2Bz0q1cwZ%2FgplzZ%2BibxEE6XyyvelWZoPSPoiXRhYVadtfvblPUIPUO%2Fl7leY%2FQbY%2B9HPkEMtNoyfj84UUPqFiUbnTK9Mwj5SbHwcrFrzGNznSxjMPZizJ1bqQ89DCNNDxCcxgqkHR250N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ugB3WBW1eeZgx1mvUFEpTA7d1GQmT%2BLbP54q7%2BefpQiLJKj2mMaocImV22R31KGUPZ2hdraHaRjV1HzP9HEe6EfdtB494fHy%2F4PFnNCQE0iZcKgDyf%2Fjo%2BMcLM%2FenDFDLI2I16UGeZpJRfTaQ%2BdypQuuDkhBo0%3D000308Please explain how to fix this Edited July 18, 2014 by Swickaar (see edit history) Link to comment Share on other sites More sharing options...
Swickaar Posted October 25, 2012 Share Posted October 25, 2012 Please note that in forums the URL is shorten up. kindly see what the URL becomes http://www.buyat bran ds.com/in dex.php?controller=product&id_product=2677&__utma=22160552.154270435.1350721253.1350883085.1350970452.4&__utmz=22160552.1350721253.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29&50ea9bef4d07776368a04b190a074a4e=9A6y0qFXEIyeexKr%2FvlTXk8E1aBEYGVV8cnUr5UAnkEyumo8amq4jwxDITHVgjBg5zThDsn5TBCOcAdlpP9oIXVlfp8Z44Ktj9WR1UMcBzgy0t%2FRDQFxAcgiyDYtCdlMrHKfOij1UFRu0EVxOf0hFENec7fcGbls482UD1WUYLPlBAey3H7Ba%2BUIT1kHQLQr97dAfrmT7%2FK%2BGXVPo4Yz2rdB2dti2oaQ3TiGJTXd7BILaYzQMT98mn9O%2FSm7NxttRcQaQ4z8MRDAPNMRkrsvAiYNTX87SJz21N0ZAf0v%2BvFxE1iRwhQW3pDCpG6%2Bz0q1cwZ%2FgplzZ%2BibxEE6XyyvelWZoPSPoiXRhYVadtfvblPUIPUO%2Fl7leY%2FQbY%2B9HPkEMtNoyfj84UUPqFiUbnTK9Mwj5SbHwcrFrzGNznSxjMPZizJ1bqQ89DCNNDxCcxgqkHR250NFqLgIH8dJLzIWn4AR42FV6TyEQew0qqAuLZ5Zo20oHJ8pDal1h1IwNU9%2BiUhNLhqtbmi1rCV72Ix%2FxULbM5SYq%2FOkz4EacO9EaRKa95zwK63h1wTKRI%2FEIWXYR1oIRoo8o0dmb9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ZpJRfTaQ%2BdypQuuDkhBo0%3D000308 Link to comment Share on other sites More sharing options...
radovan Posted October 26, 2012 Author Share Posted October 26, 2012 hm for me the major problem is i cannot change the non www to www because with this the logout dont work correctly. second is 404 get in the every page its not maybe problem for functionality but maybe for SEO yes and also when every page generate 404 error its not so good thank you for every idea . merci Link to comment Share on other sites More sharing options...
Swickaar Posted October 26, 2012 Share Posted October 26, 2012 PS team, ARE you working on this URL issues in PS 1.5x? Link to comment Share on other sites More sharing options...
jefgees Posted October 27, 2012 Share Posted October 27, 2012 Hoi had the same problem. Solved it bij synchronizing my .htacces file. May be this link can help you solve your problem: http://www.prestatraining.com/create-prestashop-htaccess-file/ succes! grtz, jef Link to comment Share on other sites More sharing options...
radovan Posted November 8, 2012 Author Share Posted November 8, 2012 thank you its for prestashop 1.5 ?? and my second major problem when i change the url to www logout dont work. thank you for reply Link to comment Share on other sites More sharing options...
jefgees Posted November 8, 2012 Share Posted November 8, 2012 Hoi radovan what do you mean by changing url to www synchronizing the .htaccess file (with 2 s) goes by a FTP-program like Filezilla. grtz, jef Link to comment Share on other sites More sharing options...
radovan Posted November 8, 2012 Author Share Posted November 8, 2012 when i change the domain to www.exemple.com its not work correctly also every page generate the 404 error how you can see in my first post its a prestashop 1.5 - i delete my .htaccess after i try regenerate without positive result ... Link to comment Share on other sites More sharing options...
radovan Posted November 8, 2012 Author Share Posted November 8, 2012 i cannot logout the user when i change the main domain to www. also every page generate the 404 error when i what in the firebug i think its not soo normal. thank you for every response also this is my 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> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.exemple.cz$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.exemple.cz$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.exemple.cz$ 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.exemple.cz$ 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.exemple.cz$ 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.exemple.cz$ 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.exemple.cz$ 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.exemple.cz$ 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.exemple.cz$ 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.exemple.cz$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.exemple.cz$ 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.exemple.cz$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.exemple.cz$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </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...
jefgees Posted November 8, 2012 Share Posted November 8, 2012 do not forget to synchronize your .htaccess file on your host. Most of the time you can login and you will find a possibility to synchronize your file. Not all hosting providers let you do it, but sometimes a call or e-mail can help you. grtz, jef Link to comment Share on other sites More sharing options...
radovan Posted November 8, 2012 Author Share Posted November 8, 2012 what you meen synchronizine htaccess ? generate the new one ? Link to comment Share on other sites More sharing options...
jefgees Posted November 8, 2012 Share Posted November 8, 2012 (edited) You can go into your plesk panel (or the dashboard of your provider). There (normally, if the provider let you do it) there is a link to synchronize your file. If they do not let oy do it, then go and look for a provider who does. grtz, jef I also saw that rewrite mode is not enabled. So try to configure your settings so everything will work properly. Edited November 8, 2012 by jefgees (see edit history) Link to comment Share on other sites More sharing options...
radovan Posted November 8, 2012 Author Share Posted November 8, 2012 its ok i dont understand only what you meen synchronization ? Because i have a cloud server and i can make what i will in final but when you meen regenerate the htaccess of corse i can made i have the problem with the url with www - without www everythink work fine but when i will changing the site dont work correctly its meen i the clients cannot logout Link to comment Share on other sites More sharing options...
Recommended Posts