I am new to laravel framework and have finished the developing part. Now i want to publish my system using Plesk windows hosting. I have uploaded all files into httpdocs folder. But It shows 404 error only.
I have web.config in httpdocs folder is below
<system.webServer>
<rewrite>
<rule name="rule 1P" stopProcessing="true">
<match url="^(.*)$" />
<action type="Rewrite" url="/public/{R:1}" />
</rule>
</rewrite>
</system.webServer>
and in public folder web.config is below
<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>
I think my config files or folder structure may be wrong. I need to correct way to host my application on windows hosting.
Note: I have only ftp details for file access
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire