# Cloudflare Error 1035 / 1036: Invalid request rewrite (invalid URI path / query string)

**Code:** `1035` · **Category:** Cloudflare · **Seen on:** Cloudflare

A Transform Rule (URL rewrite) produced an invalid path or query string.

## Meaning

Rewrite expressions that build a path without a leading slash, include illegal characters, or create an invalid query string make Cloudflare reject the request.

## Common causes

- Rewrite expression produces a path without leading “/”
- Invalid characters or encoding in the rewritten URL
- Concat/regex_replace mistakes in the expression

## Quick fix

1. Test the rewrite expression with sample URLs
2. Ensure the new path starts with /
3. Disable the rule to confirm

## Detailed fix by platform

### Cloudflare

1. 

```bash
# Rules → Transform Rules → Rewrite URL: example dynamic path
concat("/v2", http.request.uri.path)
```


## How to diagnose

1. **Rule** — Which rewrite matched?
2. **Output** — Resulting path/query

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/cloudflare/1035-invalid-request-rewrite)
