Welcome Guest, Not a member yet? Register   Sign In
Attn: Derek Allard - CI Sample .htaccess
#2

[eluser]Pascal Kriete[/eluser]
/puts on Derek Allard hat

Ok, a few things here - you don't need that first RewriteRule, you want your system folder to be part of the RewriteCond and you don't want a leading slash in that last rule because you're not using the webroot. So try:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|system|img|css|js|video_files|robots\.txt|favicon\.ico) [NC]
RewriteRule ^(.*)$ /ci_sample/index.php/$1 [L]

EDIT: Just to clarify this a bit, the first line turns on url rewriting. The second line says that anything that isn't one of the things in the parenthesis gets stored to $1. And the third line takes that stored bit and appends it to ci_sample/index.php/.


Messages In This Thread
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 03:15 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 03:26 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 03:32 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 03:39 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 03:42 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 03:43 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 04:04 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 04:06 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 04:08 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 02-22-2008, 04:56 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 03-30-2008, 12:22 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 03-30-2008, 12:32 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 03-31-2008, 04:47 AM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 03-31-2008, 04:58 AM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 03-31-2008, 07:38 AM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 05-30-2008, 02:36 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 05-30-2008, 05:23 PM
Attn: Derek Allard - CI Sample .htaccess - by El Forum - 05-31-2008, 02:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB