bruce-rez Posted July 24, 2013 Share Posted July 24, 2013 (edited) Hi, I just disabled Spanish language because I use only English and now I get a 404 error message by clicking on Logo, Home, Shipping, About us,Contact us. Prestashop 1.5.4.1 default theme Here is what I did for troubleshooting with no success: Clear cash > smarty; cash and compil folders. Clear browser cash. Toggle Friendly URL No/Yes and save. This is very frustrating and I think this version of Prestashop 1.5.4.1 is very fragile. We fix a problem but others occur and I have a feeling it never ends, sad. Thanks in advance for any help. Edited July 24, 2013 by bruce-rez (see edit history) 1 Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 check .htaccess or paste here Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 (edited) worksbut any url withdoesnt..regenerate .htaccess Edited September 24, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted July 24, 2013 Share Posted July 24, 2013 I had a similar problem when I disabled one language from two (means only one remains). Many links and functions was wrong. Then I decided to leave two languages enabled, the main set as default and remove language block to avoid switching. Works perfectly. Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Jiten rashm,It works with products pages but not the cms pages.I'm enclosing the .htaccess file.Thankstuk66,Please could you explain what you did step by step? After deleting the language did you enabled/disabled the Firendly url's?Thanks Edited September 3, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 (edited) do u a have secure https:// server? have u block some countries order deny,allow deny from 192.114.71.13 allow from all Edited July 24, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 (edited) please upload this .htaccess making backup of earlier (make sure) if u have http://enable please have this .htaccess order deny,allow deny from 192.114.71.13 allow from all RewriteCond %{HTTP_HOST} ^newstarfabrics\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.newstarfabrics\.com$ RewriteRule ^/?$ "https\:\/\/newstarfabrics\.com$ # ~~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} ^newstarfabrics.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ 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 RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^newstarfabrics.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> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </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 #php_value max_input_vars 4600 htaccess.txt Edited July 24, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Jiten rash, Thanks for fast reply. Just one question your file has the extension txt. Should I remove the txt extension before uploading? do u a have secure https:// server?have u block some countries order deny,allow deny from 192.114.71.13 allow from all Yes I have https and I have a redirect. The only country I use is USA. I have no idea about deny from 192.114.71.13 Edited July 24, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 yeah use this file save as .htaccess order deny,allow deny from 192.114.71.13 allow from all RewriteCond %{HTTP_HOST} ^newstarfabrics\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.newstarfabrics\.com$ RewriteRule ^/?$ "https\:\/\/newstarfabrics\.com$ # ~~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} ^newstarfabrics.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.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} ^newstarfabrics.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ 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 RewriteCond %{HTTP_HOST} ^newstarfabrics.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^newstarfabrics.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> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </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 #php_value max_input_vars 4600 Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) I did upload the file but I get 404 message again. Do you think the rewriting mode is active in my server? What do you think, should I contact my hosting to see if the writeing is active? Thanks. Edited July 24, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 not that copy the text i pasted.to notepad save as .htaccess the problem is ur site is enabled with ssl only https://urls getting 404 pages not http:// Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 not that copy the text i pasted.to notepad save as .htaccess Yes I did save as .htaccess not as a text and uploaded. Please see my previous reply, just one before this, Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 go to seo and url see and type ur site again..https://protocol getting 404 errors Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 Jiten rash, go to seo and url see and type ur site again..https://protocol getting 404 errors Sorry I didn't understand what you mean, I am in my back-office Preferences > SEO & URL. Where exactly should I type the ...http://protocol...? Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 (edited) no no protocol is different networking thingon seo and url u will get set shop urlon shop domain type ur site name=newstarfabrics.comon ssl again type same=newstarfabrics.combase url =/if workson ssl u may typeif u have ssl Edited September 24, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Jiten rash,Please see the screen shot of my Set shop URL.Yes I have a ssl certificate installed and I have a redirection of link removed to link removed Edited September 25, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 ya thats fine Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 enable spanish language again Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 even wen wen ur htaccess is fine the site is redirecting to /en which doesn't exist..that's y getting error see phpmyadmin shop url Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 Jiten rash, I did enable the Spanish and It works. I disbaled it before because of another issue I have in another post (see the link below). Here is the link : http://www.prestashop.com/forums/topic/262670-stats-1541-pages-not-found/page__fromsearch__1 Thanks. Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Jiten rash, even wen wen ur htaccess is fine the site is redirecting to /en which doesn't exist..that's y getting error I don't think it's an error, I do have a redirection of link removed to link removed.Thanks Edited September 24, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 (edited) disable rewrite n disable spanish lang..then see..plz see php myadmin shop url wat it says Edited September 25, 2013 by Jiten rash (see edit history) Link to comment Share on other sites More sharing options...
Jiten rash (away) Posted July 24, 2013 Share Posted July 24, 2013 ok..then..fine Link to comment Share on other sites More sharing options...
bruce-rez Posted July 24, 2013 Author Share Posted July 24, 2013 (edited) Jiten rash, thing is that..ur site is now ... Tha's correct, I asked my hosting to do it sometimes ago because I had some problem that's why.Thank you for you assistance. I am going to mark this as resolved and I'd appreiacte it if you can take a look at my other post.Here is the link: http://www.prestasho...__fromsearch__1 Edited September 3, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts