I have a CI site which has WordPress installed on the sub-directory.
Specification:
-IIS 7.5
-PHP 5.3

The original CI site:

website.com

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.php

 $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; language and controller_name?
I have tried modifying the routes.php but it did not work.

Thanks

Read more here: Rewrite URL to WordPress which included CodeIgniter


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: