If you need to modify the actual access URL to the URL that matches the origin server, you can use the access URL rewrite configuration in Tencent Cloud CDN.
You can customize the access URL rewrite configuration to redirect 302 URLs to the specified URL.
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 open the Cache Configuration tab to find the Access URL Rewrite Configuration section.
Access URL Rewrite Configuration is disabled by default.
You can click Add Rewrite Rule to add rules as needed.
Configuration limitations
http://
) by default. It can be modified to other domain names starting with http://
or https://
./
(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.If the Access URL Rewrite Configuration of the acceleration domain name www.test.com
is as follows:
Then the actual access will be as follows:
www.test.com/test/a.jpg
and the CDN node returns www.test.com/newtest/b.jpg
.www.test.com/test/a.png
and the CDN node returns www.newtest.com/newtest/a.png
.
Was this page helpful?