> For the complete documentation index, see [llms.txt](https://docs.soraco.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.soraco.co/docs/qlm-license-server/configure-a-redirect-to-another-qlm-license-server-using-a-php-script.md).

# Configure a redirect to another QLM License server using a PHP script

The following PHP script can be used to setup a redirect from your server to another QLM License Server.

In the script below, replace qlm2.net/customer with the corresponding value on your target server.

```php
<?php
$target_url = "https://qlm2.net/customer"; // qlmlicenseserver/qlmservice.asmx
$self_location = str_replace($_SERVER['DOCUMENT_ROOT'], "", __FILE__);
$new_uri = str_replace($self_location, $target_url, $_SERVER['REQUEST_URI']);
header("Location: " . $new_uri, true, 302);
?>
```

{% file src="/files/BIpYCYzSAUNJ16aAjlWB" %}
