jonahsmith Posted November 4, 2015 Share Posted November 4, 2015 Hi guys, Really need your help here. I just inherited an old PrestaShop 1.4.10.0 version (which I can't/not allowed to update unfortunately) and after I've updated the homepage's meta description, it gave out an Internal Error. I deleted the htaccess, turned off Friendly URL and its up again. Problem now is, after I turn on the Friendly URL and generate a new .htaccess; it breaks everything from the front and back end. I repeat the above cycle and it's up again. I've tried all combinations and it seems whenever it detects an .htaccess file it gives out an internal error. I've read everything I could on the topic to no avail. D: Generator screencap: http://awesomescreenshot.com/0c25dp8m7b Server informationPrestashop Version: 1.4.10.0 Server information: Linux #1 SMP Wed Apr 2 14:06:52 MST 2014 x86_64 Server software Version: Apache PHP Version: 5.2.17 MySQL Version: 5.0.96-log Original htaccess below, but even the freshly generated htaccess doesn't work. # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE # http://www.prestashop.com - http://www.prestashop.com/forums RewriteEngine on rewritecond %{http_host} ^www.URLHERE [nc] rewriterule ^(.*)$ http://URLHERE/$1 [r=301,nc] <IfModule mod_expires.c> # Enable expirations ExpiresActive On # CSS ExpiresByType text/css "access 1 month” # Default directive ExpiresDefault "access plus 1 month" </IfModule> Redirect 301 http://URLHERE/test/order-opc.php <IfModule mod_rewrite.c> # Disable Multiviews Options -Multiviews # URL rewriting module activation RewriteEngine on # URL rewriting rules RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1- $2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1-$2.jpg [L] RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/ $1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/ $3/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/ $1/$2/$3/$4/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]* \.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA- Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$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])([0-9])(\-[_a-zA-Z0-9-]*)?/ [_a-zA-Z0-9-]*\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [L] RewriteRule ^c/([0-9]+)/[a-zA-Z0-9-]+\.jpg$ /img/c/$1.jpg [L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /img/c/$1$2.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /category.php?id_category=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^page-not-found$ /404.php [QSA,L] RewriteRule ^addresses$ /addresses.php [QSA,L] RewriteRule ^best_sales$ /best-sales.php [QSA,L] RewriteRule ^cart$ /cart.php [QSA,L] RewriteRule ^contact-us$ /contact-form.php [QSA,L] RewriteRule ^discount$ /discount.php [QSA,L] RewriteRule ^guest_tracking$ /guest-tracking.php [QSA,L] RewriteRule ^order_history$ /history.php [QSA,L] RewriteRule ^identity$ /identity.php [QSA,L] RewriteRule ^manufacturers$ /manufacturer.php [QSA,L] RewriteRule ^new_products$ /new-products.php [QSA,L] RewriteRule ^order$ /order.php [QSA,L] RewriteRule ^order_follow$ /order-follow.php [QSA,L] RewriteRule ^quick-order$ /order-opc.php [QSA,L] RewriteRule ^order_slip$ /order-slip.php [QSA,L] RewriteRule ^password_recovery$ /password.php [QSA,L] RewriteRule ^prices_drop$ /prices-drop.php [QSA,L] RewriteRule ^search$ /search.php [QSA,L] RewriteRule ^sitemap$ /sitemap.php [QSA,L] RewriteRule ^stores$ /stores.php [QSA,L] RewriteRule ^supplier$ /supplier.php [QSA,L] </IfModule> # Catch 404 errors ErrorDocument 404 /404.php <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/plain text/javascript application/javascript application/x-javascript </IfModule> </IfModule> Any advice would be appreciated. Thanks very much! Link to comment Share on other sites More sharing options...
El Patron Posted November 4, 2015 Share Posted November 4, 2015 I just inherited an old PrestaShop 1.4.10.0 version (which I can't/not allowed to update unfortunately) and after I've updated the homepage's meta description, it gave out an Internal Error. ----- i thought you were not allowed to update it? hope you have back up. it might be as simple as clearing your browser cache... also when you get an error, you should enable PS debug mode before taking any action like turning on/off friendly url's etc. https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ good luck! Link to comment Share on other sites More sharing options...
jonahsmith Posted November 5, 2015 Author Share Posted November 5, 2015 I meant the old version. BUT JUST SOLVED IT! Basically removed all the excess from the htaccess. Thank you El Patron, appreciate the help. 1 Link to comment Share on other sites More sharing options...
El Patron Posted November 5, 2015 Share Posted November 5, 2015 I meant the old version. BUT JUST SOLVED IT! Basically removed all the excess from the htaccess. Thank you El Patron, appreciate the help. That's great news...you scared us all...lol now be careful would ya 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