Sounds to me that the url rewrite isn't enabled or properly configured.
This link might help
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am running laravel 9 in laragon. now I have to deploy app on IIS server. I don't have access to their server. but their guy do share screen during call. so this is we have done till now.
composer install and npm install
vite run build
public folder.but when I try to access url , the Laravel shows error,
GET method is not supported for this route. supported Methods HEAD
When we visited other routes, it just gave 404 error ( not laravel errors, it was IIS errors).
this is the web.config file which we converted from URL Rewrite tool from IIS
<rewrite>
<rules>
<!--The rule cannot be converted into an equivalent IIS format because of unsupported flags: E-->
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="(.+)/$" ignoreCase="false" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{C:1}" />
</rule>
<rule name="Imported Rule 3" 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>
Sounds to me that the url rewrite isn't enabled or properly configured.
This link might help
Please or to participate in this conversation.