Jimmythebib Posted June 22, 2015 Share Posted June 22, 2015 My CMS pages are not being rewritten corrrectly, the numeric prefix is missing in Prestashop 1.6 Other SEO friendly url's appear ok (with the horrible numeric prefix) and the cms pages which came with Prestashop are working ok. Mod rewrite enabled in php .ini htaccess below can someone advise? # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums<IfModule mod_security.c>SecFilterEngine OffSecFilterScanPOST Off</IfModule><IfModule mod_rewrite.c><IfModule mod_env.c>SetEnv HTTP_MOD_REWRITE On</IfModule>RewriteEngine on#Domain: mysite.comRewriteRule . - [E=REWRITEBASE:/]RewriteRule ^api$ api/ [L]RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]# ImagesRewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$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])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]# AlphaImageLoader for IE and fancyboxRewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]# DispatcherRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ - [NC,L]RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]</IfModule>AddType application/vnd.ms-fontobject .eotAddType font/ttf .ttfAddType font/otf .otfAddType application/x-font-woff .woff<IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add Access-Control-Allow-Origin "*" </FilesMatch></IfModule>#If rewrite mod isn't enabledErrorDocument 404 /index.php?controller=404# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Jimmy Link to comment Share on other sites More sharing options...
Jimmythebib Posted June 22, 2015 Author Share Posted June 22, 2015 This is sorted by adding the numeric prefix to the urls in the menu dialogue for now... Wondering why there is a friendly UURL dialogue when it does not work? Jimmy Link to comment Share on other sites More sharing options...
selectshop.at Posted June 22, 2015 Share Posted June 22, 2015 (edited) Other friendly URLS (products) are working ? Can you please name the URL of your page and a sample not working to inspect the problem live ? Did you changed something on URL routing ? Edited June 22, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
Jimmythebib Posted June 23, 2015 Author Share Posted June 23, 2015 Sure the store is live now www.vegusjuices.com It's not writing url's as it should in the strict sense of seo friendly url's imho. By that I mean http://www.my-site/category/my-product instead it writes http://www.my-site/home/12-my-product.html#/ It might be my configuration in the back office / category / site set up I suppose? Or maybe that the way PrestaShop does it? Its my first store with PrestaShop. It overcomes url duplication by using an key in the string but in the case of this store its definitely not an issue. Thanks Jimmy Link to comment Share on other sites More sharing options...
selectshop.at Posted June 23, 2015 Share Posted June 23, 2015 You can strip the ID, but I warn you to don't do it. It has in fact no impact on your SEO. Please see also here the discussion: https://www.prestashop.com/forums/topic/446002-which-internet-address-is-seo-friendly/ If you disable the ID's and have (not know) equal URL's your shop will get into errors, cause Prestashop does not know than which page with same name to open. The other problems I noticed is that customers using modules which were rewriting the URL's withou ID's had several problems on upgrades by making database instable, this means data was missing after upgrade. I personally warn to don't make any change on the Prestashop's native URL architecture. Prestashop works with this ID's, it is it's logic and heart of all. Link to comment Share on other sites More sharing options...
Jimmythebib Posted June 24, 2015 Author Share Posted June 24, 2015 Thanks for the sound advice SelectShop.at I will heed this for sure. I'm going to mark thread as solved. Thanks to everyone who replied. Jimmy 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