Apache Mod_Rewrite
问题 I'm struggling writing a .htaccess file to basically map the following domains: dev.domain.com/$1 => index.php/dev/$1 api.domain.com/$1 => index.php/api/$1 domain.com/$1 => index.php/front/$1 www.domain.com/$1 => index.php/front/$1 At the moment, everything is mapping to index.php/$1 with the following configuration: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> This is what