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.
http://) by default. It can be modified to other domain names starting with
/(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
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.jpgand the CDN node returns
www.test.com/test/a.pngand the CDN node returns