soundguy Posted October 28, 2008 Share Posted October 28, 2008 I havent found a satisfying solution of this problem using search. But ive discovered a new one. If it will be helpful to you u can visit my pages http://www.hanspaulska-liga.cz as a gesture of thanks.If u have already tried this manual:http://www.prestashop.com/wiki/External_or_Friendly_URLs/Then edit .htaccess, final version should look like this.(the only difference between the original one and this one are "slashes" before file names) # URL rewriting module activation RewriteEngine on # URL rewriting rules 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 ^([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 Link to comment Share on other sites More sharing options...
Nerijus Posted December 1, 2008 Share Posted December 1, 2008 Thanks this post help my solve the friendly url problem Link to comment Share on other sites More sharing options...
torchia Posted December 18, 2008 Share Posted December 18, 2008 Hi, have tried with orginal file: it opens a blank webpage.After replaced .htaccess with one shown above - still shows the blank page.any solutions?Thank you Link to comment Share on other sites More sharing options...
Site Posted March 24, 2009 Share Posted March 24, 2009 You may need to turn PHP 5 on in your .htaccess Link to comment Share on other sites More sharing options...
torchia Posted March 26, 2009 Share Posted March 26, 2009 Thank you. It shows blank page, but if I enter 'www.mydomain.com/qwerty' it opens store page 'page no longer in use.....' and from this point I can navigate and see friendly links in my store, but if I press 'HOME' it goes to the blank page again Link to comment Share on other sites More sharing options...
Nuno Saramago Posted March 27, 2009 Share Posted March 27, 2009 Hi,I have followed all the procedures I have found so far and none of them worked.The page before the friendly URL activation looked something like this:http://localhost/prestashop/category.php?id_category=3After activating (checked Apache, PHP, htaccess, etc) it looks like this:http://localhost/prestashop/3-extremeAnd it gives me the "404 not found""extreme" is the friendly name I want to give, but what is that "3" doing there? Link to comment Share on other sites More sharing options...
rossdavidh Posted March 28, 2009 Share Posted March 28, 2009 Unfortunately I am having the same problem. Do I have to have Friendly URL's turned on before importing my products? In other words are the people who it is working for, the ones who had Friendly URL's on at the time the products were first made? Any help is appreciated. Link to comment Share on other sites More sharing options...
apples Posted April 25, 2009 Share Posted April 25, 2009 Is there a solution to this problem?I'm with hostgator and it doesn't work at all.Peter Link to comment Share on other sites More sharing options...
Proglamour Posted June 16, 2009 Share Posted June 16, 2009 apple, can you be specific? Link to comment Share on other sites More sharing options...
Snol Posted June 16, 2009 Share Posted June 16, 2009 the version below is if your site is just www.mysite.com (note the / slash before filenames)AddType x-mapp-php5 .php# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([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 errorsErrorDocument 404 /404.phpIf your store is in a subfolder www.mydomain.com/subfolder, then your .htaccess needs the / and also the subfolder name.so rewrite rules must contain the folder in the prefix as sample 1 line belowRewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop/category.php?id_category=$1 [QSA,L,E]you will see where I had to add the subfolder name /prestashop/ to the line.(remember this is only 1 sample line)also make sure you have php 5 activated if it needs itJohn Link to comment Share on other sites More sharing options...
Snol Posted June 16, 2009 Share Posted June 16, 2009 Torchia which version are you using, paste your .htaccess herealso just a quick note, the new prstashop has a button which you click to generate a .htaccess file. if you are using localhost you can download this, then generate the .htaccess file and use that one...jusr remember if you then change to www.site/subfolder you will still have to add the subfolder.John Link to comment Share on other sites More sharing options...
Recommended Posts