Jump to content

How to change friendly url prestashop 1.5.6 version?


kirubanidhi

Recommended Posts

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

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

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

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

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 by kirubanidhi (see edit history)
Link to comment
Share on other sites

@ 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...