Common .htaccess file Redirects

Below shows common redirects using htaccess file.

The CI .htaccess shouldn’t be in the application folder; it should be in the root of theSubDomain folder. e.g. /public_html/SubDomain/.htaccess

How to redirect all my urls with no extension to end with .php

or