Permalink
Browse files

Add web.config

  • Loading branch information...
1 parent 63e0cdc commit 366f8ab23a11941898b4aa8504c6e7f716b8a26b @restored18 restored18 committed on GitHub Aug 26, 2016
Showing with 23 additions and 0 deletions.
  1. +23 โˆ’0 public/web.config
View
@@ -0,0 +1,23 @@
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <rule name="Imported Rule 1" stopProcessing="true">
+ <match url="^(.*)/$" ignoreCase="false" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
+ </conditions>
+ <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
+ </rule>
+ <rule name="Imported Rule 2" stopProcessing="true">
+ <match url="^" ignoreCase="false" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
+ </conditions>
+ <action type="Rewrite" url="index.php" />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration>

3 comments on commit 366f8ab

@ahjorth

Is this really necessary again? A config file for a proprietary windows framework on a PHP project aside, I'm thinking a lot of people who use quick search to jump to their web.php routes file will be annoyed.

@mikerockett

And this is a copy-paste job, too - "Imported Rule" should have been renamed.

I actually wonder if this is something that can be delegated to Artisan - something along the lines of artisan make:webconfig.

Please sign in to comment.