Welcome Guest, Not a member yet? Register   Sign In
Removing index.php from URLs....
#1

[eluser]Lee Mc[/eluser]
Hi,

I know this really, really shouldn't be that difficult, but it's managed to ruin my entire day. I give up, I need help!

I've set up a site using CI (latest build) and whilst i'm at the stage where I can browse the root of the CI site without "index.php", I can't access any of my other controllers without getting a 404. The only way I can get the pages to load is by using "index.php"...

I've set my "index page" in config.php as blank.
Mod_rewrite is set up on my server.
I took the sample .htaccess code from this site, which is as follows:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

For some reason, when I add the above .htaccess to the root of my CI site, I then get a 404 on my home page too, unless I specify "index.php". I realise this is probably me being ill-educated about .htaccess files, and i'm clearly missing something (perhaps a few brain cells). Any ideas would be appreciated...

Oh, and here's the URL of the CI version of my site: http://www.november10th.co.uk/codeigniter/


Thanks...


Messages In This Thread
Removing index.php from URLs.... - by El Forum - 08-01-2007, 11:29 AM
Removing index.php from URLs.... - by El Forum - 08-01-2007, 12:13 PM
Removing index.php from URLs.... - by El Forum - 08-01-2007, 12:55 PM
Removing index.php from URLs.... - by El Forum - 08-01-2007, 01:22 PM
Removing index.php from URLs.... - by El Forum - 08-02-2007, 12:56 AM
Removing index.php from URLs.... - by El Forum - 08-02-2007, 02:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB