Skip to content

Instantly share code, notes, and snippets.

View ProfOJ's full-sized avatar
🏠
Working from home

Joshua Odoi ProfOJ

🏠
Working from home
View GitHub Profile
@ProfOJ
ProfOJ / .htaccess
Created April 19, 2020 08:47 — forked from keithmorris/.htaccess
CodeIgniter .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]