Rewrite subdomain to the same subdomain with a folder

I have the following issue:

There are several URLs like this:

http://client1.mydomain.com/MyReports/Browse/client1

I want to create a rewrite rule that will allow me to use the following URL:

http://client1.mydomain.com

But if redirect rules work fine, rewrite one always have some issues.

My rule looks like this:

Or like this:

Rewrite to… [Static] / [MyReports/Browse/client1]

What am I doing wrong? Are there any logs to check?

I wish there were some validation check…

The two things you can check:

  1. Trace a request with Cloudflare Trace (beta) · Cloudflare Fundamentals docs
    This will show you if the rule is triggered.
  2. Your server logs.
    This will show you which URL the request turned into.

If your goal is to add /MyReports/Browse/client1 to the end of every request, the Dynamic path will do that. If you use Static, then no matter what URL they type in, it’ll always end up as client1.mydomain.com/MyReports/Browse/client1