# How to redirect the QLM License Server using URL Rewrite

[URL Rewrite](https://www.iis.net/downloads/microsoft/url-rewrite) can be used to redirect a QLM License Server from one server to another.

You should start by installing URL Rewrite on the server where the source QLM License Server is located.

## Redirect the QLM License Server

* In IIS, locate the QLM License Server vitrual directory
* Select the virtual directory and click the URL Rewrite tool
* Click Add Rules
* Add a Blank Rule
* Give the rule a name such as: QLM License Server Redirect
* Set Requested URL to: Matches the Pattern
* Set Using to: Regular Expressions
* Set Pattern to: (.\*)
* Check "Ignore case"
* Add a new condition as follows:
  * Expand the Conditions section
  * Click Add
  * Set the Condition input to {PATH\_INFO}
  * Set the Check if input string: Matches the Pattern
  * Set the Pattern to: ^/xyz . Replace xyz as needed.
    * For example, if you are using the default QLM configuration where the files are installed in the qlm folder such as:
      * qlm/QlmLicenseServer
      * qlm/QlmCustomerSite
      * qlm/QlmPortal
    * You would set the Pattern to: ^/qlm
  * Check "Ignore case"
  * Click Ok
* Set the Action type to: Redirect
* In the Action Properties section:
  * Set the Redirect URL to: [http://yournewserver.com{C:0}/{R:0}](http://your/)
  * Check "Append query string"
  * Set the Redirect type to: Temporary (307)&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/qlm-license-server/how-to-redirect-the-qlm-license-server-using-url-rewrite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
