trident Posted July 30, 2009 Share Posted July 30, 2009 Running final release 1.2 on local pc with wamp.Friendly url turned OFF, no .htaccess file then images all display ok.Turn Friendly url ON, Generate .htaccess file as per generator tool. i then get no access to shop. jut a page coming up with a message saying:"Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log."Having read the various links on .htaccess i cannot find the solution, especially a the software generated the fileitself.My .htaccess file details are below:-----------------------------------------------------------# 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$ /prestashop/img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop/img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop/product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop/product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop/category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop/product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop/product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop/category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop/cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /prestashop/supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /prestashop/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /prestashop/$2?isolang=$1 [QSA,L,E]--------------------------------------------------------------------------------any suggestions would be much appreciated as this is causing serious concerns.Andrew Link to comment Share on other sites More sharing options...
Univers des Petits Posted July 30, 2009 Share Posted July 30, 2009 Hi, Just one quick check (just in case) : does the rewriteengine is turned ON in wamp config ?I mean : the rewritemodule extension is uncommented in the apache config ?Did it work previouly on this machine, with the same wamp config ? Or is it the first time you turn ON the firendyly url ?Kind Regards, Raphaël Link to comment Share on other sites More sharing options...
HandyFR Posted July 31, 2009 Share Posted July 31, 2009 Hi Andrew,Try this .htaccess file: # .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 ^([0-9]+)\-([0-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 ^([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] # Catch 404 errors ErrorDocument 404 /404.php I hope you would find the file useful,Handy Link to comment Share on other sites More sharing options...
trident Posted August 1, 2009 Author Share Posted August 1, 2009 Hi, Just one quick check (just in case) : does the rewriteengine is turned ON in wamp config ?I mean : the rewritemodule extension is uncommented in the apache config ?Did it work previouly on this machine, with the same wamp config ? Or is it the first time you turn ON the firendyly url ?Kind Regards, Raphaël Doh!How dozy am i.Looked in there but missed it.Sorted now, many thanx. Link to comment Share on other sites More sharing options...
Recommended Posts