george4711 Posted February 19, 2010 Share Posted February 19, 2010 Hi,Because I am pretty new to e-shops, could you please someone explain what are friendly URL's, what is their usage in prestashop?Thanks in advance. Link to comment Share on other sites More sharing options...
rocky Posted February 19, 2010 Share Posted February 19, 2010 Friendly URLs are used for Search Engine Optimisation purposes. It makes the URL more readable by putting the category name and product name in the URL. For example, the friendly URL on my site is http://www.nethercottconstructions.com/prestashop-modules/8-ajax-accordion-sliding-categories.html instead of the default http://www.nethercottconstructions.com/product.php?id_product=8. Link to comment Share on other sites More sharing options...
george4711 Posted February 19, 2010 Author Share Posted February 19, 2010 Judging from your answer, this is not important for the shop administrator nor for the shop owner. Do I have right? Link to comment Share on other sites More sharing options...
rocky Posted February 19, 2010 Share Posted February 19, 2010 Friendly URLs are important to shop owners who want their site to appear high in the Google rankings. When creating new categories, products and CMS pages, the shop owner should enter appropriate keywords to make their content easier to find on Google. Link to comment Share on other sites More sharing options...
george4711 Posted February 20, 2010 Author Share Posted February 20, 2010 Thank you for this info Link to comment Share on other sites More sharing options...
Prinfor Posted April 24, 2010 Share Posted April 24, 2010 Friendly URLs are important to shop owners who want their site to appear high in the Google rankings. When creating new categories, products and CMS pages, the shop owner should enter appropriate keywords to make their content easier to find on Google. But why if i put on the frindly urls the photos disapear from the website? Do i have to regerate the photos? Thanks in advance for the help Link to comment Share on other sites More sharing options...
rocky Posted April 24, 2010 Share Posted April 24, 2010 You need to upload a blank .htaccess file to the root of Prestashop of your server and give it chmod 666 permissions. Then go to Tools > Generators and choose "Generate .htaccess file". Link to comment Share on other sites More sharing options...
Prinfor Posted April 24, 2010 Share Posted April 24, 2010 You need to upload a blank .htaccess file to the root of Prestashop of your server and give it chmod 666 permissions. Then go to Tools > Generators and choose "Generate .htaccess file". Ok, i will do that, but you think my htacess is ok?:# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# 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$ /publico/img/p/$1-$2$3.jpg [L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /publico/img/c/$1$2.jpg [L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /publico/product.php?id_product=$3&isolang;=$1$5 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /publico/product.php?id_product=$2&isolang;=$1$4 [L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /publico/category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /publico/product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /publico/product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /publico/category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /publico/cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /publico/supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /publico/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /publico/$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /publico/404.phpThanks Rocky, you rules, thanks for all Link to comment Share on other sites More sharing options...
rocky Posted April 24, 2010 Share Posted April 24, 2010 Your .htaccess file looks fine. Perhaps it is a server configuration issue. Do you use Apache or IIS? The .htaccess file that PrestaShop generates only works with Apache. Link to comment Share on other sites More sharing options...
Prinfor Posted April 26, 2010 Share Posted April 26, 2010 Your .htaccess file looks fine. Perhaps it is a server configuration issue. Do you use Apache or IIS? The .htaccess file that PrestaShop generates only works with Apache. Thanks for your response, it uses apache, when i put on the option friendlys urls, i also create a new .htacess, but 50% of the produtcs dont show up the photos, and even when i click in one product without photo, it shows "product unavaible", this is strange, maybe i have to regerate all the photos? I beeing desperate with this, can you help me? Thanks a lot Link to comment Share on other sites More sharing options...
rocky Posted April 26, 2010 Share Posted April 26, 2010 Can you check whether the images actually exist? Look in your img/p directory for a file with the ID of product that isn't displaying its images. If the images are there, it must be a URL rewrite issue. If there is only one image with that product ID are there are no thumbnail images, then you'll need to regenerate your thumbnails. If there aren't any images at all that start with the product ID, then you'll need to edit the product, delete the missing images and then reupload them. Link to comment Share on other sites More sharing options...
ladivito Posted May 20, 2010 Share Posted May 20, 2010 Hi,i tried but my product url still show http://www.xxx.com/product.php?id_product=11 ???which step i miss out ???thanks for helping Link to comment Share on other sites More sharing options...
rocky Posted May 20, 2010 Share Posted May 20, 2010 Did you go to the Preferences tab and change "Friendly URL" from "No" to "Yes"? Link to comment Share on other sites More sharing options...
ladivito Posted May 20, 2010 Share Posted May 20, 2010 problem solve...... thanks Link to comment Share on other sites More sharing options...
george4711 Posted June 11, 2010 Author Share Posted June 11, 2010 Hi rocky,Your information is really very important for me.Do I need the generating of the files above, every time I add a new product or category? Link to comment Share on other sites More sharing options...
rocky Posted June 11, 2010 Share Posted June 11, 2010 No, you only have to generate the .htaccess file once. The product name is copied into the friendly URL field as you type it. You can manually edit the friendly URL yourself and change it so that it is different for each language. Link to comment Share on other sites More sharing options...
george4711 Posted June 11, 2010 Author Share Posted June 11, 2010 Do you mean that I can have the same friendly URL for two different languages within a common .htaccess file. Could please give me an example?Thanks in advance Link to comment Share on other sites More sharing options...
guest* Posted August 18, 2010 Share Posted August 18, 2010 Your .htaccess file looks fine. Perhaps it is a server configuration issue. Do you use Apache or IIS? The .htaccess file that PrestaShop generates only works with Apache. I have the same problem and I use IIS7. .htaccess is the same as shown here before. All links are broken, what shall I do ? 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