CodeIgniter Forums
Installing Condigniter in subfolder but setting multilanguage as in root - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Installing Condigniter in subfolder but setting multilanguage as in root (/showthread.php?tid=76182)



Installing Condigniter in subfolder but setting multilanguage as in root - thingNumber1 - 04-19-2020

Hi,

I have a Wordpress multilanguage installation in `example.com`

When I go to `example.com/en/` I see the website in English and when I go to `example.com/es/` I see the website in Spanish.

Now I need to install Codeigniter at `example.com/software/` but I need to be able to access the English version from `example.com/en/software/` instead of `example.com/software/en` and the Spanish from `example.com/es/software/` instead of `example.com/software/es`

Is this possible?


RE: Installing Condigniter in subfolder but setting multilanguage as in root - thingNumber1 - 04-19-2020

Note: Sorry for adding more information on another post, but I was not able to edit my first post still waiting for moderation.

The update:

I am using this code on the .htaccess file, on the root folder, to try to do the trick:

Code:
RewriteRule ^es/software/$ /software/index.php?lang=es&%{QUERY_STRING} [L]

It almost works, because now is reading the CI installation but it shows a 404 with this message: `Controller or its method is not found: App\Controllers\Es::spinner`

Like if it is trying to find a controller on the wrong controller and method.