hardyhar Posted March 25, 2010 Share Posted March 25, 2010 Seriously, WHY is .htaccess generator even in the tools tab? I'm trying to do a re-write on url's and pressed that generator button and now my site is blank! I can't even access my site admin.Don't tell me I have to start over. Sorry...venting. Link to comment Share on other sites More sharing options...
Pshopic Posted March 25, 2010 Share Posted March 25, 2010 Did you delete .htaccess file from you ftp? Link to comment Share on other sites More sharing options...
hardyhar Posted March 25, 2010 Author Share Posted March 25, 2010 I deleted the .htaccess files that got generated today but there are 2 more in htaccess files in my ftp.Do I just need to erase everything and upload again? Link to comment Share on other sites More sharing options...
Pshopic Posted March 25, 2010 Share Posted March 25, 2010 Just delete .htaccess, look result. I do not think that .htaccess can do like you said Link to comment Share on other sites More sharing options...
hardyhar Posted March 25, 2010 Author Share Posted March 25, 2010 Well, I don't know what the problem is. I just went to tools and pressed on htaccess generator and then my site went blank. It actually gives you a warning that it will delete current htaccess file but I thought it would get replaced by something else that would help me rewrite my files. Link to comment Share on other sites More sharing options...
tomerg3 Posted March 26, 2010 Share Posted March 26, 2010 Try adding the following at the top of your htaccess file AddType application/x-httpd-php5 .php Some hosting companies will default to php4 unless the above line is in the htaccess file, and when Prestashop generates the htaccess file, it doesn't add the line. Link to comment Share on other sites More sharing options...
Mathew_MT Posted May 19, 2010 Share Posted May 19, 2010 Hi there I had the same problem with the .htaccess generator.After I had generated the file my site stays blank.Thank god and tomerg3 that I find this topic here.Your code tomerg works thaks again. Link to comment Share on other sites More sharing options...
tomerg3 Posted May 19, 2010 Share Posted May 19, 2010 my pleasure Link to comment Share on other sites More sharing options...
SonnyBoyII Posted July 25, 2010 Share Posted July 25, 2010 Im still heaving the problem with blank page after generating file....I added "AddType application/x-httpd-php5 .php" to the clear .htaccess file. I clicked generate file and after that my shop is blank! any ideas? help please! Link to comment Share on other sites More sharing options...
tomerg3 Posted July 25, 2010 Share Posted July 25, 2010 Im still heaving the problem with blank page after generating file....I added "AddType application/x-httpd-php5 .php" to the clear .htaccess file. I clicked generate file and after that my shop is blank! any ideas? help please! Did you try to add it after you generate the file? Link to comment Share on other sites More sharing options...
SonnyBoyII Posted July 25, 2010 Share Posted July 25, 2010 Yes... I did....my file looks like this:AddType application/x-httpd-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]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.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.php Link to comment Share on other sites More sharing options...
tomerg3 Posted July 25, 2010 Share Posted July 25, 2010 Are those numbers in the file (1. 2. etc) Link to comment Share on other sites More sharing options...
SonnyBoyII Posted July 25, 2010 Share Posted July 25, 2010 no,heh, sorry about that. Its really strange... Shall I contact with my hosting provider?? Link to comment Share on other sites More sharing options...
tomerg3 Posted July 25, 2010 Share Posted July 25, 2010 First, try to enable debugging (edit /config/config.inc.php line 4, change 'off' to 'on') and see if you get an error. Link to comment Share on other sites More sharing options...
SonnyBoyII Posted July 25, 2010 Share Posted July 25, 2010 [sOLVED 2]Ive found the sollution!!In my case, i had to remove all "E" parameters from the end of the lines for example:RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L, E]to RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L]etc....Why?? I have no idea ..... but it works! Link to comment Share on other sites More sharing options...
dovetail Posted March 17, 2011 Share Posted March 17, 2011 Hi all,This morning, nearing the completion of setting up my store, ready to launch.... I pressed the god damned .htaccess generator button. I got a blank page immediately and now I cannot access anything.This is the code that got generated and I have no idea how to just restore it to how it was...# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# Catch 404 errorsErrorDocument 404 /404.phpI added the php5 script as suggested, but it had no impact that I could see. Please tell me somebody knows how to fix this or restore it to what it might have been? Link to comment Share on other sites More sharing options...
dovetail Posted March 17, 2011 Share Posted March 17, 2011 I found that this is what corrects it at the top of the .htaccess as I use 1and1 hosting. Hope that helps.AddType x-mapp-php5 .php 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