Bhardiel Posted July 21, 2010 Share Posted July 21, 2010 First of all, I have read all the post I have found about this and similar issues appeared afeter using friendly URL.Then, I'm using Prestashop 1.3.1. under an apache 2.2 server with php 5.3.2 and mysql5 in WindowsXP.And the steps I made are those:1-Load the rewrite engine extension on the httpd.conf of apache.2-Generate a blank file called .htaccess under my shop's root directory(/tartalo/development/prestashop)3-use the prestashop admin panel preferences->friendly-url and checked yes option and saved.4-Use prestashop's admin panel tools->generators->generate .htaccess file, obtainis this config: # .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$ /tartalo/development/prestashop/img/p/$1-$2$3.jpg [L,E] RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /tartalo/development/prestashop/img/p/$1-$2.jpg [L,E] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /tartalo/development/prestashop/img/c/$1$2.jpg [L,E] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /tartalo/development/prestashop/product.php?id_product=$3&isolang;=$1$5 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /tartalo/development/prestashop/product.php?id_product=$2&isolang;=$1$4 [L,E] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /tartalo/development/prestashop/category.php?id_category=$2&isolang;=$1 [QSA,L,E] RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /tartalo/development/prestashop/product.php?id_product=$2$4 [L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /tartalo/development/prestashop/product.php?id_product=$1$3 [L,E] RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /tartalo/development/prestashop/category.php?id_category=$1 [QSA,L,E] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /tartalo/development/prestashop/cms.php?id_cms=$1 [QSA,L,E] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /tartalo/development/prestashop/supplier.php?id_supplier=$1$3 [QSA,L,E] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /tartalo/development/prestashop/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E] RewriteRule ^lang-([a-z]{2})/(.*)$ /tartalo/development/prestashop/$2?isolang=$1 [QSA,L,E] # Catch 404 errors ErrorDocument 404 /tartalo/development/prestashop/404.php 5-Stop apache service, close apache server and run it again.Now in the main page there are no item images on the highlighted items, and when I use a link it doesn´t work and shows me a 404 error.Any help would be strongly appreciated. Link to comment Share on other sites More sharing options...
eltitos Posted July 21, 2010 Share Posted July 21, 2010 hello,Did you try to regenerate the .htaccess file after checked the friendly option? Link to comment Share on other sites More sharing options...
Bhardiel Posted July 21, 2010 Author Share Posted July 21, 2010 Yes, in fact I have written the steps in a wrong order, first I checked the friendly-url and then generated the .htaccess. Link to comment Share on other sites More sharing options...
sh0p Posted August 17, 2010 Share Posted August 17, 2010 Hello,I have a simillar problem as the person above. Whenever I generate the htaccess file from the Back Office and enable it the friendly url works, but bugs the Back Office. I cannot access the Back Office when the Rewrite Engine is on. As long as its off - it gives me the following error:' Error We're sorry, but the Web address you entered is no longer available 'Can someone help us out? Thanks in advance.Regards. Link to comment Share on other sites More sharing options...
Bhardiel Posted August 17, 2010 Author Share Posted August 17, 2010 Hi, in my case, I had finally solved it modifying this sentence in the httpd.conf # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride AllChanging "AllowOverride None" to "AllowOverride All".Hope it helps. Link to comment Share on other sites More sharing options...
sh0p Posted August 18, 2010 Share Posted August 18, 2010 Hi, where is located the httpd.conf? I am with prestashop 1.3.1, and using CPanel.Thanks Link to comment Share on other sites More sharing options...
muktadir Posted October 20, 2010 Share Posted October 20, 2010 hi! Try this solution. My problem is solved by it:http://www.icodebd.com/prestashop-search-engine-friendly-url-error/ Link to comment Share on other sites More sharing options...
inspector Posted December 13, 2010 Share Posted December 13, 2010 i also want to know where this httpd.conf file is.... Link to comment Share on other sites More sharing options...
Bhardiel Posted May 3, 2011 Author Share Posted May 3, 2011 httpd.conf is in the Apache root/conf folder, but in case you're using Prestashop on a shared hosting you should use your hosting support to know if those options are enabled or not, since you can't access that file. Link to comment Share on other sites More sharing options...
spawn Posted January 15, 2013 Share Posted January 15, 2013 I have the same problem,alot of erors 404.I'm using prestashop 1.4.In my case ,i have the.htaccess file.Could i use those codes? Link to comment Share on other sites More sharing options...
noodly90210 Posted January 20, 2013 Share Posted January 20, 2013 I have same error at presta 1.5.3. And my apache dosen't run with this code. Link to comment Share on other sites More sharing options...
Pman 77 Posted February 14, 2013 Share Posted February 14, 2013 I have same error at presta 1.5.3. And my apache dosen't run with this code. I am running 1.5.3 as well have you resolved this problem yet? Thanks 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