I asked a question earlier about installing Laravel on Windows Hosting, because of the web.config file.
I was able to get the site rolling. I was able to make the file and put it in the public folder of the site. I just do not know if it is fully following the rules of the .htaccess file that Laravel himself mounts. I'll post the file code down there later.
Because the following happens now: when I open the site, it takes a little longer than usual. And when I click on another LINK a page with this error appears:
HTTP Error 500.0 - Internal Server Error
C: \ PHP_5.5 \ php-cgi.exe - The FastCGI process exited unexpectedly
But if I refresh the page, it opens.
If I go to another page, the same thing happens. And sometimes it does not. I tested it on several computers, it's the same way.
What can it be?
Follow the web.config file.
<?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>
<rewrite>
<rules>
<rule name="Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="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>
<handlers>
<clear />
<add name="php-5.5" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\PHP_5.5\php-cgi.exe" resourceType="Either" requireAccess="Script" />
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />
</handlers>
</system.webServer>
</configuration>