/blog/11/example-title to /blog/index.php?p=11&title=example-title, which is readable by your CMS.
url-rewrite Traffic Policy action docs for more information.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Learn how to rewrite URLs using Traffic Policy to map user-friendly URLs to backend permalinks for better SEO and user experience.
/blog/11/example-title to /blog/index.php?p=11&title=example-title, which is readable by your CMS.
on_http_request:
- expressions:
- req.url.path.startsWith('/blog')
actions:
- type: url-rewrite
config:
from: "/blog/([0-9]+)/([a-zA-Z]+)/"
to: "/blog/index.php?p=$1&title=$2"
{
"on_http_request": [
{
"expressions": [
"req.url.path.startsWith('/blog')"
],
"actions": [
{
"type": "url-rewrite",
"config": {
"from": "/blog/([0-9]+)/([a-zA-Z]+)/",
"to": "/blog/index.php?p=$1&title=$2"
}
}
]
}
]
}
url-rewrite Traffic Policy action docs for more information.Was this page helpful?