Jump to content
thirty bees forum
  • 0

Question

Posted

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

Recommended Posts

  • 0
Posted

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
Posted

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
Posted

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
Posted

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
Posted

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
Posted

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
Posted

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
Posted

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
Posted

Thank you but it does not work. I modified the table in configuration lang but it does not affect RewriteRule

  • 0
Posted

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
Posted

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
Posted

I don't understand...

I migrated my ps shop with the migrate tool... did not touch the database an unusual way :)

  • 0
Posted

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
Posted

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?

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