DARKF3D3 Posted January 3, 2011 Share Posted January 3, 2011 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).CATEGORYhttp://127.0.0.1:8888/prestashop/10-accessoriPRODUCThttp://127.0.0.1:8888/prestashop/5-macbook-air.htmlHow can i remove that? I want link like this:http://127.0.0.1:8888/prestashop/macbook-air.htmlThanks Link to comment Share on other sites More sharing options...
Tomas Jancik Posted January 3, 2011 Share Posted January 3, 2011 the numbers is the IP address of your computer...I guess you're running this shop on your local or you access the shop directly from the server, right? Link to comment Share on other sites More sharing options...
rocky Posted January 4, 2011 Share Posted January 4, 2011 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 More sharing options...
DARKF3D3 Posted January 4, 2011 Author Share Posted January 4, 2011 Thanks rocky, so for the products it could be a problem because i add new every day, but it's ok for the categories.Which is the rules i must add? Link to comment Share on other sites More sharing options...
rocky Posted January 5, 2011 Share Posted January 5, 2011 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 More sharing options...
DARKF3D3 Posted January 10, 2011 Author Share Posted January 10, 2011 I think that i'll not change category description, because i need something automatical.ThanksBye Link to comment Share on other sites More sharing options...
armadillo Posted February 13, 2011 Share Posted February 13, 2011 I activated Friendly url. It works for Categories links but it did not work for product page links ending with .html. When i try it on Google Chrome it gives the error below:Error 310 net:ERR_TOO_MANY_REDIRECTSHow can i solve this issue? Link to comment Share on other sites More sharing options...
armadillo Posted February 14, 2011 Share Posted February 14, 2011 The main problem is product page link is not opening on Friendly Url but category links are opening. Link to comment Share on other sites More sharing options...
tl Posted April 13, 2011 Share Posted April 13, 2011 did you solve this. I have the same - ctageories work okay but not any product pages? Link to comment Share on other sites More sharing options...
armadillo Posted April 13, 2011 Share Posted April 13, 2011 yes it is ok with PS 1.4 Link to comment Share on other sites More sharing options...
tl Posted April 13, 2011 Share Posted April 13, 2011 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 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