1๐
i find my question myself.
/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/?(api)/
RewriteRule ^api/(.*)$ /api/index.php?$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/?(api)/
RewriteRule . /index.html [L]
</IfModule>
/api/.htaccess
<IfModule mod_rewrite.c>
SetEnv CI_ENV production
RewriteEngine On
RewriteBase /api
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /api/index.php/$1 [L]
</IfModule>
๐คJang Seon Geun
Source:stackexchange.com