Hi,
Is it possible to have Phalcon running properly on IIS 8.5 ? I'm talking about URL Rewriting ?
What is the proper structure ? If a traduce .htaccess in Web.config file, do I need one at the root and one in the public file ?
Actualy, I have this in my root Web.config file :
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="public/index.php?_url=/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
And this in my public/Web.config file :
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Public Rule" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<serverVariables />
<action type="Rewrite" url="index.php?_url=/{R:1}" appendQueryString="true" logRewrittenUrl="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
I can't find out how to make this work.
Any help will be very appreciated.