We have a website that has been running for a year.
Recently the team is introducing 2 new languages and therefore we are changing everything to include in the address bar something like /en or /ru
Therefor what once was: http://www.website.com is now http://www.website.com/en
The only problem is we need to go through every single page and change
$this->uri->segment(x)
to $this->uri->segment(x+1)
Is there a way to tell CI that /en is perhaps part of the base_url()
and therefore keep $this->uri->segment(x)
as it was before and just skip the /en part?
Thank you.