Contact Us Now

Archive for the ‘CodeIgniter’ Category

CodeIgniter HTACCESS remove index.php and add trailing slash

Here is a quick HTACCESS snippet that will add the trailing slash (ex: http://domain.com/mycontroller to http://domain.com/mycontroller/) and will remove the index.php from the URL (ex: http://domain.com/index.php/mycontroller/ to http://domain.com/mycontroller/) RewriteEngine On RewriteBase / # this adds trailing slash RewriteCond %{REQUEST_FILENAME} !-f ... Read more