Subfolders and mod-rewrite
I need to alter this current re-write rule to accommodate for an admin folder. Here is my current mod-rewrite code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z]+?)/([a-z]+?)/(.*)$ index.php?model=$1&view=$2¶ms=$3 [L,NS] I have this folder structure: ROOT: http://www.domain.com/ ADMIN: http://www.domain.com/admin/ If the .htaccess file is in the "admin" folder it works correctly. I get: URL: http://domain.com/admin/faq/edit/13/asc (NOTE: http://domain.com/admin/.htaccess) Array ( [model] => faq [view] => edit [params] => 13/asc