rewrite {
r ^/superpwa-manifest(-[0-9]+)?.json
to /index.php?superpwa-manifest-{1}.json
}
rewrite {
r ^/OneSignalSDKWorker.js.php
to /index.php?OneSignalSDKWorker.js-{1}.php
}
rewrite {
r ^/superpwa-sw(-[0-9]+)?.js
to /index.php?superpwa-sw.js
}
But something goes wrong
Can anyone help me with correct caddy rewrite for it?
Will start to output standard logs appended with the rewritten URI, if a rewrite took place. You can then review the log to make sure the rewritten URI looks like the plugin expects it to. Modify /path/to/caddy.log to specify where you want the logs to be written to.