Jump to content

Problem with friendly URL


DARKF3D3

Recommended Posts

Hello, i have activated the friendly URL on my site but i have a problem, non on the categories and products name, before the name of the page there are some number (i think the categorie and product number).

CATEGORY
http://127.0.0.1:8888/prestashop/10-accessori
PRODUCT
http://127.0.0.1:8888/prestashop/5-macbook-air.html

How can i remove that? I want link like this:
http://127.0.0.1:8888/prestashop/macbook-air.html


Thanks

Link to comment
Share on other sites

It's a common request to remove the numbers from the friendly URL, but PrestaShop requires it to know which product to redirect to. It uses that number to redirect to product.php?id_product=x. The only way to remove it is to enter a separate rewrite rule in your .htaccess file for each product. This will quickly become unmanageable if you have many products or update your products frequently. I suggest that you just leave it there. It has no effect on SEO.

Link to comment
Share on other sites

You must add an entry for each category and language. For example, the following redirects the friendly URL for the home category in English, French and Spanish to category 1 and the Accessories category in English to category 10. You will need to add more lines for each category and language as necessary.

RewriteRule ^lang-en/home$ /prestashop/category.php?id_category=1&isolang=en [QSA,L]
RewriteRule ^lang-fr/accueil$ /prestashop/category.php?id_category=1&isolang=fr [QSA,L]
RewriteRule ^lang-es/inicio$ /prestashop/category.php?id_category=1&isolang=es [QSA,L]
RewriteRule ^lang-en/accessories$ /prestashop/category.php?id_category=10&isolang=en [QSA,L]

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

hmmm very strange - can you tell me what your products URLS look like.

I dont understand why my site would be any different. The only difference can be the host, but I am using a good host who so far I ahvent had any htaccess issues with unlike one and one etc.

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...