Newbie - Issues deploying on a subdomain with shared hosting

I am trying to deploy to a subdomain on shared hosting (with plesk)

After copying the contents from my local machine to the public_html, I copied the files in the public folder, index.php and .htaccess, to the public_html folder and got a blank page.

Then I modified the paths in the index.php (that is now in the root directory) relative to the other folders and files, and then the ‘/’ route was working, however every other routes doesn’t work, they return 404.

So the issue now is getting other routes to work, and I have tried modifying the .htaccess with information from the slim docs, but no luck there.


I have attached a picture showing the folder structure.
Thank you


The issue was with Plesk (for windows)

I added this to my web.config file

<?xml version="1.0" encoding="UTF-8"?>
      <add name="Access-Control-Allow-Origin" value="*" />
      <add name="Access-Control-Allow-Methods" value="GET,POST,OPTIONS" />
      <add name="Access-Control-Allow-Headers" value="Content-Type, Authorization" />
        <requestLimits maxAllowedContentLength="524288000" />
    <directoryBrowse enabled="false" />
        <add extension=".php" policy="DontCache" kernelCachePolicy="DontCache" />
        <add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="14:00:00" />
        <rule name="block favicon" stopProcessing="true">
          <match url="favicon\.ico" />
          <action type="CustomResponse" statusCode="404" subStatusCode="1"
          statusReason="The requested file favicon.ico was not found"
          statusDescription="The requested file favicon.ico was not found" />
        <rule name="Cols Rule" stopProcessing="true">
          <match url="^(.*)$" ignoreCase="false" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
          <action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
        <remove value="index.php" />
        <add value="index.php" />