Installing CodeIgniter in a subdirectory

When moving a codeigniter app from root directory to sub-directory, two actions are required for its correct functioning.

1. Change base_url in config.php, just add sub directory at the end.

2. Make Required changes in .htaccess file to return requests to the subdirectory as example is mentioned here.

http://stackoverflow.com/questions/21469367/codeigniter-2-1-4-installation-in-sub-directory