If you need to modify the origin-pull request URL to the URL that matches the origin server, you can use the origin URL rewrite configuration in Tencent Cloud CDN.
Log in to the CDN console, select Domain Management on the left sidebar, click Manage on the right of a domain name to enter its configuration page, and switch to the Origin-pull Configuration tab to find the Origin URL Rewrite Configuration section.
You can click Add Rule to add rewrite rules as needed.
Configuration limitations
/
; supporting full-path matching (e.g., /test/a.jpg) and wildcard () matching (e.g., /test//*.jpg). If you want to specify a file directory, you cannot end the path with /
(e.g., /test).http://
and https://
). You can modify it as needed./
(e.g., /newtest/b.jpg); the wildcard *
can be captured with $n
(e.g., if n=1,2,3… then /newtest/$1/$2.jpg). If you want to specify a file directory, you cannot end the path with /
(e.g., /test).*
and 10 $n
are supported.Suppose the Origin URL Rewrite Configuration of the acceleration domain name www.test.com
is as follows:
Then,
www.test.com/test/
will be changed to www.test.com/newtest/
.www.test.com/test/a.jpg
, www.newtest.com/newtest/a.jpg
will be actually requested.
Was this page helpful?