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

One Response 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

Leave a reply

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



Unique Skins