Welcome Guest, Not a member yet? Register   Sign In
How to start a project with CodeIgniter?
#8

[eluser]CroNiX[/eluser]
Well, that really has nothing to do with CI. That has to do with Apache. .htaccess is something you should learn and know how to use as a web developer. There is no one size fits all .htaccess setup. They are entirely dependent on how YOU set your webserver up.

CI assumes you already know how to program in PHP, use webservers, css, etc.

But, .htaccess should be (in most setups) in the same directory that the main index.php resides in.
This is the one that works on my current development server, it may not work for you as I'm sure your server setup is slightly different than mine.
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
And of course, you have to remove index.php from your CI config files.


Messages In This Thread
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 04:41 AM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 05:01 AM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 05:21 AM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 05:47 AM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 06:12 AM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 01:13 PM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 04:06 PM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 04:44 PM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 04:49 PM
How to start a project with CodeIgniter? - by El Forum - 01-30-2012, 04:52 PM
How to start a project with CodeIgniter? - by El Forum - 01-31-2012, 03:28 AM
How to start a project with CodeIgniter? - by El Forum - 01-31-2012, 11:11 AM
How to start a project with CodeIgniter? - by El Forum - 01-31-2012, 01:10 PM
How to start a project with CodeIgniter? - by El Forum - 01-31-2012, 03:34 PM
How to start a project with CodeIgniter? - by El Forum - 01-31-2012, 03:59 PM
How to start a project with CodeIgniter? - by El Forum - 02-01-2012, 01:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB