Jump to content

Htaccess generator @$%#^&$ my site- it's blank!!


Recommended Posts

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

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

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

  • 1 month later...
  • 2 months later...
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

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 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,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 errors
ErrorDocument 404 /404.php

Link to comment
Share on other sites

[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

  • 7 months later...

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 errors
ErrorDocument 404 /404.php

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...