Welcome Guest, Not a member yet? Register   Sign In
Remove index.php with mod_rewrite but keep css/site.css
#1

[eluser]Brennan Novak[/eluser]
Howdi,

New to CodeIgniter, I'm loving it but just trying to work out some kinks.

I got the index.php removed but editing this line in config.php

Quote:$config['index_page'] = "index.php"; ===> $config['index_page'] = "";

And by adding this .htaccess file. I'm running MAMP on my Mac.

Quote:Options +FollowSymLinks
RewriteEngine On

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

BUT I can't seem to keep my site.css file working. It tries to load the file via:

http://localhost:8888/domain.com/css/site.css

But gives me a CodeIgniter 404 page. Is there any place to add an "exception" to CI somewhere?


Messages In This Thread
Remove index.php with mod_rewrite but keep css/site.css - by El Forum - 09-29-2009, 01:42 PM
Remove index.php with mod_rewrite but keep css/site.css - by El Forum - 09-29-2009, 01:49 PM
Remove index.php with mod_rewrite but keep css/site.css - by El Forum - 09-29-2009, 04:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB