Pilou Posted May 3, 2017 Posted May 3, 2017 Hello all, First of all, I would like to thanks all dev, all moderators and all who make this possible. I am a Ps users til v1.3.7 if I remember well. :) I tried the Migration Module. Just before that, I go back to the default theme of Ps (may be not important) The migration module worked well without any error. But I have a small problem with my url's. In Ps, I delete the category in the product url to have a clean url like www.mydomain.com/99-my-product.html After the migration, url's are back to something like www.mydomain.com/category/99-my-product (no .html at the end) I think it's not good for SEO, isn't it ? Sorry for my bad english, but my mother language is french. Kind regards, Pilou
0 lesley Posted May 3, 2017 Posted May 3, 2017 Are you able to configure your urls back to the way they were in the seo and urls tab?
0 Pilou Posted May 4, 2017 Author Posted May 4, 2017 Hello Lesley, Thanks for your answer. No, I can't.. When i changed the product url into "{id}-{rewrite}.html", i had an error message when i tried to save : "Route "product_rule" with rule: "{id}-{rewrite}.html" needs a correct delimiter"
0 Pilou Posted May 4, 2017 Author Posted May 4, 2017 mdekker, thank you very much. Can you tell me where in the db please ? Nice job man ;)
0 Pilou Posted May 10, 2017 Author Posted May 10, 2017 @mdekker, thanks for help Here are my PS_route http://i.imgur.com/XhtgkAV.jpg What is wrong ?
0 Pilou Posted May 11, 2017 Author Posted May 11, 2017 Hello mdekker, No. As I said, product route is actually www.mydomain.com/category/99-my-product (no .html at the end) Kind regards and thx for help. Pilou
0 Pilou Posted May 18, 2017 Author Posted May 18, 2017 Hello mdekker, Finally, I found the default product url is {rewrite} in tb. In Ps, it was {id}-{rewrite}. So I removed {id} and it's ok. I can save it on Seo & Url Tab. Now, I must find how to redirect old url {id}-{rewrite}.html to new one {rewrite}.html
0 alwayspaws Posted May 18, 2017 Posted May 18, 2017 Thanks for starting this post, @Pilou. I noticed a few on my site but it's still PS 1.6
0 Pilou Posted May 18, 2017 Author Posted May 18, 2017 Thank you mdekker, but there is a .html at the end of the url and when i use your module, it's not add. :/
0 Pilou Posted May 18, 2017 Author Posted May 18, 2017 It's seems better, thank you !! (you code quicker then your shadow :-))))) How to verify .htaccess is working please ? Simply type mydomain.com/121-product121.html and it do not work (mydomain.com/product121.html exist and its id is 121)
0 Pilou Posted May 18, 2017 Author Posted May 18, 2017 Sorry, had customers in my shop ;) 01495115618469htaccess.txt
0 Pilou Posted May 18, 2017 Author Posted May 18, 2017 I tested two differents ways: - directly into the .htaccess file before the other lines, no work - in the seo & url, htacess part, after the other rules, no work But thank you !
0 Pilou Posted May 18, 2017 Author Posted May 18, 2017 Back ! I tried to edit the line RewriteRule ^ /id-productname.html$ /productname.html [L] in RedirectPermanent /id-productname.html /productname.html and it works well :) The question is : 450 lines more in .htaccess file, does it affect the speed of the web site ?
0 Traumflug Posted May 29, 2017 Posted May 29, 2017 See https://forum.thirtybees.com/topic/320/problem-saving-seo-url-routes: The table to edit for manual tweaks isn't configuration, but configuration_lang. Rewrite settings are language-aware, so one has to change the value for each language. Distinct values for different languages are perfectly possible. While this currently isn't possible in backoffice, a fix is provided for 1.0.2.
0 Pilou Posted May 30, 2017 Author Posted May 30, 2017 Thank you but it does not work. I modified the table in configuration lang but it does not affect RewriteRule
0 Traumflug Posted May 30, 2017 Posted May 30, 2017 Maybe there are some extra steps required to get these rules into effect. Instead of investigating what this could be it's probably easier to apply the patch here: https://forum.thirtybees.com/topic/320/problem-saving-seo-url-routes/3 Use a generic text editor (Word is the wrong tool), open file controllers/admin/AdminMetaController.php, find text addFieldRoute(, then 'type' => 'text', then change this 'text' to 'textLang' and save the file. On success there will be a small menu for selecting the language under each of these rewrite rule fields. Modify the rule(s) to your likings, do the same for each language, click 'Save', then 'Regenerate URLs'. This should do the trick.
0 Pilou Posted May 30, 2017 Author Posted May 30, 2017 Thank you ! It seems to work now. Even if I had an error message when I saved the new rules http://i.imgur.com/F0fNx1Z.jpg
0 Traumflug Posted May 30, 2017 Posted May 30, 2017 Excellent! Let's assume for now these error messages are a result of you upgrading the database in this unusual way :-)
0 Pilou Posted May 30, 2017 Author Posted May 30, 2017 I don't understand... I migrated my ps shop with the migrate tool... did not touch the database an unusual way :)
0 Pilou Posted June 21, 2017 Author Posted June 21, 2017 Hello mdekker, After I modified controllers/admin/AdminMetaController.php as you told, I have an error 500 when I try to reach SEO&URL tab. Kind regards
0 Pedalman Posted September 22, 2017 Posted September 22, 2017 I migrated, too :) with a live shop less than 12 hours later I notice that product pages are rewritten to a scheme without .html. I like that but all old seo juice and links is now gone to error 404 :( I read your comments carefully and wonder if I still want to have ThirtyBees rewrite of (e.g.) product pages: Is there no way to rewrite via regex in the htaccess?
0 Pedalman Posted September 22, 2017 Posted September 22, 2017 OLD: articles {categories:/}{rewrite}.html categories {categories:/}{rewrite}/ (! notice the final / )
0 Pedalman Posted September 22, 2017 Posted September 22, 2017 old www.shop.de/category/product.html new www.shop.de/category/product
Question
Pilou
Hello all,
First of all, I would like to thanks all dev, all moderators and all who make this possible. I am a Ps users til v1.3.7 if I remember well. :)
I tried the Migration Module.
Just before that, I go back to the default theme of Ps (may be not important) The migration module worked well without any error.
But I have a small problem with my url's. In Ps, I delete the category in the product url to have a clean url like www.mydomain.com/99-my-product.html
After the migration, url's are back to something like www.mydomain.com/category/99-my-product (no .html at the end)
I think it's not good for SEO, isn't it ?
Sorry for my bad english, but my mother language is french.
Kind regards, Pilou
29 answers to this question
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