I can post to http://localhost/index.php/login just fine. But having index.php in all my url's is ugly and I don't want to do that.
Laravel on IIS
Ok so I have been trying to get this to work for days so I have finally decided to ask.
I need to get Laravel to work with IIS. My company uses windows authentication and we are building a helpdesk system. They would like it to automatically authenticate the user based on the user logged into the computer. I have everything working just fine until I try to set up a route. So if I go to http://localhost I can get there just fine. But if I set up this route
Route::post('login', 'PagesControllter@postLogin');
Then try to submit to that route I always get a 404 error back. Below is my web.config file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
</handlers>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" url="/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<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>
I am pointing my web application in IIS to the public directory in Laravel. Any help would be greatly appreciated.
Kyle
Please or to participate in this conversation.