URLs changes after upgrade to 2020.07

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
columbo
Advanced
Posts: 123
Joined: 09 Oct 2019, 09:42

URLs changes after upgrade to 2020.07

Post by columbo » 03 Sep 2020, 19:39

Hi,

after upgrade to aimeos 2020.07 product URLs changed from underscores to hyphens eg.
from: www.xyz.com/shop/prod_abc_xyz
to: www.xyz.com/shop/prod-abc-xyz

Now all bookmarked and indexed (SEO) URLs aren't valid anymore -> "Product not found" message.
Are there any possibilities to replace / redirect an "old" URL (with _) to the new (with -)?

thx and regards

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: URLs changes after upgrade to 2020.07

Post by aimeos » 04 Sep 2020, 15:54

It's difficult to configure another word separator because it's done in a class that can't be overwritten:
https://github.com/aimeos/aimeos-core/b ... #L145-L149

The best options would be:
- Implement a 404 handler that replaces "_" with "-"
- Write a rewrite rule for your web server that does the replacement

We are sorry, we haven't thought about that problem when switching to SEO best practices in 2020.07 ...
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply