I have a CI site which has WordPress installed on the sub-directory.
The original CI site:
Everytime I access website.com , it would add 2 variables. Internationalization and the controller.
It would redirect the site to website.com/id/user.
id=> Indonesian user=>Controller
Because of this , on accessing WordPress ( website.com/blog/), it add those two variables too.
It would redirect the site to website.com/blog/id/user
On WordPress, I have included the CI index.php so I can call the CI view in WordPress.
$route['default_controller'] = "user"; //$route['blog/id/user'] = $route['default_controller']; $route['404_override'] = ''; $route['^(id|en)(.+)$'] = "$2"; // '/en', '/de', '/fr' and '/nl' URIs -> use default controller $route['^(id|en)$'] = $route['default_controller'];
How can I change the URI not to add the two variables;
Read more here: Route WordPress which included CodeIgniter