I believe it's explained here:
But the doc is not fully accurate with when it comes to router. Here is 3-step guide for you:
1.You need to use this method to link argument with a page:
In your case, inside the applications init():
This will automatically use frontend/public/?page=account/200
next you need to get rid of ?page=, you need 2 things for that:
a: inside config file set url_prefix to empty string:
$config['url_prefix'] = '';
b: make .htaccess is set to:
RewriteRule ^[^\.]*$ index.php [L]
Now your page will be frontend/public/account/200
- Finally you need to update DocumentRoot of your virtual server to point inside "frontend/public" folder.
Now you should have mydomain.com/account/200.