jgjh151 Posted October 2, 2009 Share Posted October 2, 2009 I was in the admin of a new installation and clicked generate .htaccess and page reloaded blank. Now admin and front end are all blank white page. Site is dead in 5 minutes. How can I fix it?---------------------Seems when I click generate htaccess, it removes the line to make the site run php5 that my host places in it when the account was set up.Can I download the contents of what is placed into the file ad paste it in manually? Link to comment Share on other sites More sharing options...
Notesowo.pl Posted October 24, 2009 Share Posted October 24, 2009 I have the same problem - I would appreciate support with this one. Link to comment Share on other sites More sharing options...
Notesowo.pl Posted October 24, 2009 Share Posted October 24, 2009 I solved it by removing E from all brackets in .htaccess file, example [L,E] -> [L] Link to comment Share on other sites More sharing options...
prestabase Posted October 26, 2009 Share Posted October 26, 2009 Glad to see you fixed the issue. jgjh151, did that fix your issue as well? Link to comment Share on other sites More sharing options...
aaroncross Posted November 2, 2009 Share Posted November 2, 2009 I have this same problem... removing E from the brackets did not work for me. Not only does it render my page blank .. but when i reset the original .htaccess file, it removes the categories block... makes links 404 and removes pictures... I'm on my 3rd install in a row... Anyone? Link to comment Share on other sites More sharing options...
aaroncross Posted November 2, 2009 Share Posted November 2, 2009 6 installs and 36 hours of work later... I'm giving up. Chalk this up to a BUG that needs to be fixed!Quick question: everyone that is having this problem... What hosting provider are you using?Mine is 1 and 1 web host... I ask because I know 1and1 makes me put a .htacess file in the root with Addtype x-mapp-php5 .php to switch php versions (4 by default)They also require me to put a php.ini file in the config and install galleries in order to make url rewritable.Could This Be The Problem? The .htaccess allowing php 5 is being overwritten by the friendly URL code? Link to comment Share on other sites More sharing options...
Patric Posted November 2, 2009 Share Posted November 2, 2009 The PrestaShop .htaccess generator removes everything already existing in the file before writing in it. So, after the generation, you must restore manually the previous content. Link to comment Share on other sites More sharing options...
aaroncross Posted November 2, 2009 Share Posted November 2, 2009 The PrestaShop .htaccess generator removes everything already existing in the file before writing in it. So, after the generation, you must restore manually the previous content. Well I gave it a try: what I have in .htaccess after adding my piece:Addtype x-mapp-php5 .php# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpI also tried my piece of the code after th catch 404...Does Not Work:Catagories are missingLinks dont work: There is 1 error : 1. you do not have access to this productNew Products block goes empty...... and im off for another install... thanks for your help Patric, but i doubt I'll ever try again.* I also tired removing the [E] as suggested previously in this thread... no go. Link to comment Share on other sites More sharing options...
OSCA2M Posted November 30, 2009 Share Posted November 30, 2009 I have the same problem . The .htaccess automaticaly generated by PrestaShop crashes my store. I have reset and tried it several times, I've also tried taking the E out of the .htaccess file but had NO success.Not sure what x-mapp-php5 .php is all aboutCan any one please offer some suggestions on how to resolve this issue.We would all appreciate the support on this one.Any additional comments would be wonderful!. Link to comment Share on other sites More sharing options...
aaroncross Posted November 30, 2009 Share Posted November 30, 2009 Addtype x-mapp-php5 .php : was what i personally needed to place into my .htaccess in order to change my webservers php version from 4 to 5... it doesn't have anything to do with the prestashop .htacess generation code...Still doesnt work with or without it... Link to comment Share on other sites More sharing options...
OSCA2M Posted November 30, 2009 Share Posted November 30, 2009 Are you familiar with either of these? .htaccess generator or the httpd.confI tried to dig up more on the topic to see if we can resolve the issue. Here is what I found.http://www.prestashop.com/forums/viewthread/23883/help_installation___upgrade/problem_with_nice_urlhttp://www.prestashop.com/forums/viewthread/16130/general_discussion/problem_with_friendly_urlhttp://www.prestashop.com/forums/viewthread/32904/general_discussion/url_rewriting_and_seohttp://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http://www.prestashop.com/forums/viewthread/34003/svenska/friendly_urlsThis page talks it.... but Not sure how to resolve the problem.. Says: Problem is in httpd.confI must change this:AllowOverride noneOrder allow,denyon this: AllowOverride AllOrder Deny,Allow Link to comment Share on other sites More sharing options...
Mallee Boy Posted December 27, 2009 Share Posted December 27, 2009 Hi, were you able to solve your .htaccess problem. I notice that my store slows to a crawl with it on. Doesn't quite crash, but its slow and the pages do not seem to finish loading. Link to comment Share on other sites More sharing options...
OSCA2M Posted January 9, 2010 Share Posted January 9, 2010 have not been able to solve it yet, unfortunately we need to rebuild our LAMP, but then hopefully it will be smoother sailing. 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