Jump to content

error 500 after generating htaccess


Recommended Posts

Hi

 

I've tried to activate the url rewriting yesterday. So I've generated my htaccess, and the url rewriting, and everything worked.

When I tried to go back on my prestashop this morning I had a 500 error. Only in my front office, I have access to my backoffice.

 

I've tried to delete my htaccess file, but the error was still there. The funny thing is that when I'm changing my theme and use the prestashop theme everything works. So I don't know what's happening !

 

Here is my htaccess :

 

 

 

# .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

 

 

<IfModule mod_rewrite.c>

# 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$ /presta/img/p/$1-$2$3.jpg [L]

RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /presta/img/p/$1-$2.jpg [L]

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /presta/img/p/$1/$1$2.jpg [L]

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /presta/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$ /presta/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$ /presta/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$ /presta/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$ /presta/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$ /presta/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$ /presta/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$ /presta/img/c/$1$2.jpg [L]

RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /presta/img/c/$1.jpg [L]

RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /presta/img/c/$1$2.jpg [L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /presta/product.php?id_product=$1 [QSA,L]

RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /presta/product.php?id_product=$1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*(/[a-zA-Z0-9-]*)+ /presta/category.php?id_category=$1&noredirect=1 [QSA,L]

RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /presta/category.php?id_category=$1 [QSA,L]

RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /presta/supplier.php?id_supplier=$1 [QSA,L]

RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /presta/manufacturer.php?id_manufacturer=$1 [QSA,L]

RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /presta/cms.php?id_cms=$1 [QSA,L]

RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /presta/cms.php?id_cms_category=$1 [QSA,L]

RewriteRule ^page-non-trouvee$ /presta/404.php [QSA,L]

RewriteRule ^adresse$ /presta/address.php [QSA,L]

RewriteRule ^adresses$ /presta/addresses.php [QSA,L]

RewriteRule ^authentification$ /presta/authentication.php [QSA,L]

RewriteRule ^meilleures-ventes$ /presta/best-sales.php [QSA,L]

RewriteRule ^panier$ /presta/cart.php [QSA,L]

RewriteRule ^contactez-nous$ /presta/contact-form.php [QSA,L]

RewriteRule ^bons-de-reduction$ /presta/discount.php [QSA,L]

RewriteRule ^suivi-commande-invite$ /presta/guest-tracking.php [QSA,L]

RewriteRule ^historique-des-commandes$ /presta/history.php [QSA,L]

RewriteRule ^identite$ /presta/identity.php [QSA,L]

RewriteRule ^fabricants$ /presta/manufacturer.php [QSA,L]

RewriteRule ^mon-compte$ /presta/my-account.php [QSA,L]

RewriteRule ^nouveaux-produits$ /presta/new-products.php [QSA,L]

RewriteRule ^commande$ /presta/order.php [QSA,L]

RewriteRule ^details-de-la-commande$ /presta/order-follow.php [QSA,L]

RewriteRule ^commande-rapide$ /presta/order-opc.php [QSA,L]

RewriteRule ^avoirs$ /presta/order-slip.php [QSA,L]

RewriteRule ^mot-de-passe-oublie$ /presta/password.php [QSA,L]

RewriteRule ^promotions$ /presta/prices-drop.php [QSA,L]

RewriteRule ^recherche$ /presta/search.php [QSA,L]

RewriteRule ^plan-du-site$ /presta/sitemap.php [QSA,L]

RewriteRule ^magasins$ /presta/stores.php [QSA,L]

RewriteRule ^fournisseurs$ /presta/supplier.php [QSA,L]

</IfModule>

 

# Catch 404 errors

ErrorDocument 404 /presta/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>

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE text/javascript

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

</IfModule>

 

If someone can help me on this !

Thanks :)

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...