{exp:ce_str:ing php} ['https://'.$domain.'{if '{segment_3}'=='homepage'}/{if:else}/{segment_3}{/if}{if segment_4}/{segment_4}{/if}{if segment_5}/{segment_5}{/if}']]; //$purge = ['purge_everything' => true]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch,CURLOPT_POSTFIELDS, json_encode($purge)); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); } catch(Exception $e) { print($e); } echo $domain; ?>{/exp:ce_str:ing} {!-- finally, take the user back to the proper entry page--} {if segment_5} {redirect="{segment_3}/{segment_4}/{segment_5}?live=cf-cleared"} {if:elseif segment_4} {redirect="{segment_3}/{segment_4}?live=cf-cleared"} {if:elseif '{segment_3}'=='homepage'} {redirect="/?live=cf-cleared"} {if:elseif segment_3} {redirect="{segment_3}?live=cf-cleared"} {if:else} {redirect="/?live=cf-cleared"} {/if}