Localization duplicate page problem when locale set in routes |
If we can assign segment 1 of all URLs to locale, the problem will be solved. by this way, canonical URLs created and you can say to search engines.
For example: https://example.com will be converted to: https://example.com/en Of course this technique should apply to all URLs. https://example.com/blog/article/1 will be converted to: https://example.com/en/blog/article/1 I used this approach in CI3 and its SEO results was good and acceptable. Can anyone say how this possible in CI4, by some sample codes? |
Welcome Guest, Not a member yet? Register Sign In |