File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/examples/example_page_rules.sh
Back
: ZONE=${1-example.com} URL_MATCH="*.${ZONE}/url1*" URL_FORWARDED="http://${ZONE}/url2" cli4 --post \ targets='[ { "target": "url", "constraint": { "operator": "matches", "value": "'${URL_MATCH}'" } } ]' \ actions='[ { "id": "forwarding_url", "value": { "status_code": 302, "url": "'${URL_FORWARDED}'" } } ]' \ status=active \ priority=1 \ /zones/:${ZONE}/pagerules | jq '{"status":.status,"priority":.priority,"id":.id}' exit 0
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings