CodeIgniter with cPanel
Okay, my FYP is.. partially done using CodeIgniter, and truth be told, alot of time has been wasted trying to get a specific feature, called.. well, re-writing index.php into .htaccess to work with mod_rewrite.
Finally, after some sheer, dumb luck, and 8 hours of trying – I came across some example which really wasn’t supposed to work – an example for some windows WAMP server, but nevertheless, it worked with a cPanel installation.
For those who are interested, the mod_rewrite code for this is:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
For those of you who doesn’t know what this is, well, you don’t need to know
THANKS
This website is awesome! some great content you got here!
It is also easy to backup and transfer all your websites from one server to another server if you have cPanel installed*:*
if you are going to get a VPS server make sure that it has cPanel coz it makes server maintennance easier..,”