Laravel .htaccess rewrite rule conversion to IIS
问题 Laravel4 framework comes with a default .htaccess rule for create pretty urls. The rule is this. <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> Question: Which is the equivalent in IIS ?? 回答1: You can use the import Apache rules feature to convert Apache rule to IIS. In your case, it will go as: Or in the web.config file: <rule name="Imported Rule 1" stopProcessing="true"> <match url="^" ignoreCase=