Welcome Guest, Not a member yet? Register   Sign In
Localization duplicate page problem when locale set in routes
#10

(This post was last modified: 08-27-2021, 09:42 AM by takbitdev.)

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?
Reply


Messages In This Thread
RE: Localization duplicate page problem when locale set in routes - by takbitdev - 08-27-2021, 09:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB