---
title: http.request.uri.path.extension
description: The lowercased file extension in the URI path without the dot (`.`) character.
image: https://developers.cloudflare.com/core-services-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/ruleset-engine/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

#  http.request.uri.path.extension 

`http.request.uri.path.extension` ` String ` 

The lowercased file extension in the URI path without the dot (`.`) character.

This corresponds to the string after the last dot in the URI path, excluding the query string.

If the first character of the last path segment is a dot and the segment does not contain other dot characters, the field value will be an empty string (`""`). Having a dot as the first character does not represent a file extension and is commonly used in UNIX-like systems to denote a hidden file or directory.

Example values:

* If the URI path is `/articles/index.html`, the field value will be `"html"`.
* If the URI path is `/articles/index.`, the field value will be an empty string (`""`).

Example values:

| URI path     | Field value |
| ------------ | ----------- |
| /foo         | ""          |
| /foo.mp3     | "mp3"       |
| /.mp3        | ""          |
| /.foo.mp3    | "mp3"       |
| /foo.tar.bz2 | "bz2"       |
| /foo.        | ""          |
| /foo.MP3     | "mp3"       |

Categories: 
* Request
* URI

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/http.request.uri.path.extension/#page","headline":"http.request.uri.path.extension · Cloudflare Ruleset Engine docs","description":"The lowercased file extension in the URI path without the dot (.) character.","url":"https://developers.cloudflare.com/ruleset-engine/rules-language/fields/reference/http.request.uri.path.extension/","inLanguage":"en","image":"https://developers.cloudflare.com/core-services-preview.png","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/ruleset-engine/","name":"Ruleset Engine"}},{"@type":"ListItem","position":3,"item":{"@id":"/ruleset-engine/rules-language/","name":"Rules language"}},{"@type":"ListItem","position":4,"item":{"@id":"/ruleset-engine/rules-language/fields/","name":"Fields"}},{"@type":"ListItem","position":5,"item":{"@id":"/ruleset-engine/rules-language/fields/reference/","name":"Fields reference"}}]}
```
