Fix wrong url for purge

Before the URL contained `/index.php` and sometimes `//` which doesn't work since the actual URL is without the `index.php` or `//` parts and hence not purged.