kirubanidhi Posted May 3, 2017 Share Posted May 3, 2017 I'm using prestashop 1.5.6 version. I want to change my friendly url from http://www.pts.local/12-products to http://www.pts.local/products. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2017 Share Posted May 3, 2017 Why do you want to do this ? There is no SEO impact on this, this means your site will not rank better in serps by removing the ID. In contrary, if you remove this ID, which Prestashop needs to handle dublettes, than you risk to make Prestashop unusable. Moreover: if you are using your shop since a bigger period of time WITH the ID's, than they are already inxed by serps. It is not wise to make changes on this. You will need to rewrite than these links for to don't get them lost in de search index. Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 4, 2017 Share Posted May 4, 2017 Hi..See this https://www.prestash...number-for-v15/i hope it will hep for youThanks Link to comment Share on other sites More sharing options...
selectshop.at Posted May 4, 2017 Share Posted May 4, 2017 Yes you can change the URL's by removing ID's, but as said before: don't do it. You have the risk to make shop unusable, besides, there is no need to make any changes on this. There is no reason for to do this. Not if the shop is running since some time and is already indexed in SERPS. See discussion also here: https://www.prestashop.com/forums/topic/458524-prestashop-1610-remove-ids-from-urls/?do=findComment&comment=2124269 https://www.prestashop.com/forums/topic/467309-how-to-remove-catefories-and-products-id-from-url/?do=findComment&comment=2137755 Link to comment Share on other sites More sharing options...
kirubanidhi Posted May 4, 2017 Author Share Posted May 4, 2017 I'm using prestashop 1.5.6.2 version. Is it possible to remove category id and product id from friendly URL. Suppose i removed category id will there be any affect in my site. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 4, 2017 Share Posted May 4, 2017 Please read the answers already given: Yes you can change the URL's by removing ID's, but as said before: don't do it. You have the risk to make shop unusable, besides, there is no need to make any changes on this. There is no reason for to do this. Not if the shop is running since some time and is already indexed in SERPS. See discussion also here: https://www.prestashop.com/forums/topic/458524-prestashop-1610-remove-ids-from-urls/?do=findComment&comment=2124269 https://www.prestashop.com/forums/topic/467309-how-to-remove-catefories-and-products-id-from-url/?do=findComment&comment=2137755 Link to comment Share on other sites More sharing options...
kirubanidhi Posted May 5, 2017 Author Share Posted May 5, 2017 (edited) Is it possible to change one category friendly url from http://www.pts.local/12-category to http://www.pts.local/category. please give me any idea. Edited May 5, 2017 by kirubanidhi (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 FOR ONLY ONE CATEGORY you can rewrite the URL by adding a line to your .htaccess. This is basic task for each webmaster. Add to your .htaccess the following line, add it as first line, before Prestashop block: RewriteCond %{REQUEST_URI} ^\/12\-category$ RewriteRule .* http://www.pts.local/category [R=301,L] If you have still problems on this, on Google you will find several tutorials for how to redirect uRL's. for ex: https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/ Link to comment Share on other sites More sharing options...
kirubanidhi Posted May 5, 2017 Author Share Posted May 5, 2017 (edited) ok thanks, I will follow your answer. Any alternative solution are available to solve this problem. I have one doubt regarding .htaccess file. There are two .htaccess files are available in my site. 1 . var/www/html/ .htaccess 2 . var/www/html/prestashop/.htaccess I don't know, in which htaccess file should i change. Edited May 5, 2017 by kirubanidhi (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 .htaccess2 is not a valid format, so I presume this is a back-up of the original file. Working file should .htaccess and it is located in the root of your Prestashop. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 As you in the meantime changed your post. It is here: 2 . var/www/html/prestashop/.htaccess Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 BTW: the URL http://www.pts.local/category should exist on your Prestashop. Otherwise the re-write I mentioned for .htaccess will not work. To rewrite IN PRESTASHOP ONLY one URL, is not possible. Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted May 5, 2017 Share Posted May 5, 2017 (edited) Hi..you see this posthttps://www.prestashop.com/forums/topic/189443-override-friendly-urls-without-id-number/Thanks Edited May 5, 2017 by Nishith (see edit history) Link to comment Share on other sites More sharing options...
kirubanidhi Posted May 5, 2017 Author Share Posted May 5, 2017 (edited) I changed only one category friendly url from http://www.pts.local/12-category to http://www.pts.local/category but it could not work. Error: This page is not available We're sorry, but the Web address you've entered is no longer available. Edited May 8, 2017 by kirubanidhi (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 @ nishith - Yeah, as written before: don't remove ID's. By removing ID's you have the risk to trash your shop. So simply don't do it. The choice that you have is to contract a paid service like mine, after you trashed your shop. https://www.prestashop.com/forums/topic/119763-how-to-remove-category-id-or-product-id-from-friendly-url/?p=597444&do=findComment&comment=597444 https://www.prestashop.com/forums/topic/119763-how-to-remove-category-id-or-product-id-from-friendly-url/page-3?p=2551264&do=findComment&comment=2551264 - valid also for PS 1.5. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 5, 2017 Share Posted May 5, 2017 I tried your solution but it could not work. Error: This page is not available We're sorry, but the Web address you've entered is no longer available. BTW: the URL http://www.pts.local/category should exist on your Prestashop. Otherwise the re-write I mentioned for .htaccess will not work. To rewrite IN PRESTASHOP ONLY one URL, is not possible. As written before: If the link is not available, so you cannot redirect it, because it is not available. Let the links how they are. As written several times before, if you manage to remove the ID's you have the risk to trash your shop. All solutions here named in the forum, never take in mind that you some day will upgrade your shop. Prestashop needs the ID's for to work. By removing them, the shop will not work properly anymore (not after upgrade, nor if you are using or want to use further paid or free modules). In this case you need to contract somebody (paid service) who repair your database and shop. Be aware that some repairs on database could be not done retrograde, so you must expect broken data or missing data in your database and shop as a result of such dopey solution like removing ID's. Link to comment Share on other sites More sharing options...
kirubanidhi Posted May 5, 2017 Author Share Posted May 5, 2017 ok , Any alternative solution are available to solve this problem. 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