.htaccess - CodeIgniter 3 with Capistrano htaccess issue -


i using capistrano deploy ci3 site , don't know rewrite rules. able find htaccess rules stackoverflow none of them work case, here am.

i managed have home page running without program, none of route works me. return ci3 404 page not found error.

my site structure:

|-- .htaccess (under domain root) |-- app/     |-- current/ -> symlink latest release folder         |-- application/         |-- public/         |-- index.php         |-- .htaccess (under project root)         |-- ...other ci 3 folders , files     |-- shared/     |-- repo/     |-- shared/     |-- releases/ 

.htaccess ( under domain root )

rewriteengine on rewritebase /  # remove www  rewritecond %{http_host} !^siteurl.com$ rewriterule ^(.*)$ http://siteurl.com/$1 [l,r=301]  # redirect ci3 root rewritecond %{request_uri} !^/app/current/ rewriterule ^(.*)$ /app/current/$1 [l] 

.htaccess ( under project root )

rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] 

config.php

$config['base_url'] = 'http://siteurl.com'; $config['index_page'] = ''; $config['uri_protocol'] = 'request_uri'; 

routes.php

$route['default_controller'] = 'welcome'; $route['api/oauth'] = 'api/oauth'; 

so far, welcome page works fine, ci3 404 error page return route api/oauth.

please help!!! many thanks!!!

i figure out, stupid mistake, controller name cap, ci3 not able understand it. problem resolved. .htaccess code works.