Hello,
I am using IIS 8 to deploy my laravel now, but have a minor problem. Everything is installed and working, but only if I manually add /index.php behind the domain name. So www.domain.com gives me a 403 forbidden (access is denied), but www.domain.com/index.php gives me my (almost complete) working website.
The other minor thing is that my images are not working (unless I add /public in front of the url's). But I don't want the /public part in the URL (otherwise people might start investigating and trying other folders and things like that).
(Also my css and everything automatically gets filled with /public what can be seen in the webpage source)
So is it possible to remove the /public path in IIS altogether? So both my /403 gets removed and I don't have to add /public to all my image paths without breaking the rest of the code?
My web.config is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="default.aspx" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
<handlers accessPolicy="Read, Execute, Script">
</handlers>
<rewrite>
<rules>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="public/index.php/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>