Cloudflare tunnel give 404 error

I have setup config like this

tunnel: ddddd
credentials-file: xxxxx.json
ingress:
  - hostname: sub.domain.com
    service: http://127.0.0.1:80
  - service:  http_status:404

I host laravel on this. I get https://sub.domain.com fine, but https://sub.domain.com/subdirectory gives 404 error sometimes, some other time I get the requested url not found on server error

Have you tried Validating and Testing your tunnel?

https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/configuration/configuration-file/ingress#validating-your-configuration

Thanks for the reply. I think its apche rewrite issue. Now fixed.