yandao.com - Memoirs of a player wannabe

June 28th, 2008

CodeIgniter with cPanel

Posted by Kelvin in Everything

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 :D

4 Responses to ' CodeIgniter with cPanel '

Subscribe to comments with RSS or TrackBack to ' CodeIgniter with cPanel '.

  1. add said,
    on July 15th, 2008 at 9:11 pm

    THANKS

  2. amikk said,
    on March 11th, 2009 at 11:36 am

    This website is awesome! some great content you got here!

  3. on May 5th, 2010 at 12:32 pm

    It is also easy to backup and transfer all your websites from one server to another server if you have cPanel installed*:*

  4. Luke Jackson said,
    on August 13th, 2010 at 1:55 am

    if you are going to get a VPS server make sure that it has cPanel coz it makes server maintennance easier..,”

Leave a reply

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:



Unique Skins