> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.metalocator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Configuring Reverse Proxy with IIS on Windows

This tutorial covers the adjustments to your Web server required for creating a [reverse proxy](https://www.metalocator.com/seo-domain-options/) in IIS.  This allows for your location landing pages to appear under a sub-directory of your Web site such as [www.yourwebsite.com/locations](http://www.yourwebsite.com/locations) as opposed to [locations.yourwebsite.com](http://locations.yourwebsite.com) or other address.

This tutorial is for IIS running on Windows 2008 R2.  Other [operating systems and Web servers](https://www.metalocator.com/seo-domain-options/) will differ.

The first step is to Install IIS Rewrite.  This can be downloaded [here](http://www.iis.net/downloads/microsoft/url-rewrite), or via the Web Platform Installer by searching for Rewrite.  This will also require that you install Application Request Routing.  Once installed, click URL Rewrite:

[![](https://www.metalocator.com/wp-content/uploads/2017/01/iis_rewrite-268x300.png)](https://storage.crisp.chat/users/helpdesk/website/-/7/a/e/3/7ae34bd91a428000/417342be-b258-4d2e-ac2f-2d0fb3_23xib6.png)

Next, add the Rewrite rule that will redirect requests to "/locations" to our reverse proxy.

[![](https://www.metalocator.com/wp-content/uploads/2017/01/add_rule-300x143.png)](https://storage.crisp.chat/users/helpdesk/website/-/2/e/7/9/2e791e8fb91d5e00/decf3825-9325-4f33-aaa5-036829_s9wj1r.png)

Choose Reverse Proxy

[![](https://www.metalocator.com/wp-content/uploads/2017/01/reverse_proxy-300x199.png)](https://storage.crisp.chat/users/helpdesk/website/-/1/d/4/2/1d42a977a040dc00/78427c36-3d1e-40b3-8e2f-3ea5b6_153fzdr.png)

Enter the hostname where your current location landing pages appear.  The content at this address will be displayed when you visit "yourwebsite.com/locations"

[![](https://www.metalocator.com/wp-content/uploads/2017/01/hostname-298x300.png)](https://storage.crisp.chat/users/helpdesk/website/-/8/1/5/9/8159f4c6dc037000/3ee95b4e-f5b3-4767-bbc8-d398a1_1ydqx1a.png)

This reverse proxy will match ALL URLs at this point.  We want to change this behavior to only match URLs beginning with /locations (or whatever sub-directory you choose).  Update the **Pattern** option as shown below:

[![](https://www.metalocator.com/wp-content/uploads/2017/01/regex-300x180.png)](https://storage.crisp.chat/users/helpdesk/website/-/9/6/c/b/96cb0207f679c800/62ef5ad4-e95f-4cbc-b57a-6c182c_wpbxvo.png)

That should complete the configuration.  Our complete Web.config was as follows:

```
<?xml version="1.0" encoding="UTF-8"?>  
<configuration>  
 <system.webServer>  
 <rewrite>  
 <rules>  
 <rule name="ReverseProxyInboundRule1" stopProcessing="true">  
 <match url="locations(/.*)?" />  
 <conditions>  
 </conditions>  
 <action type="Rewrite" url="https://testlandingpagesrewrite.locationlandingpages.com/0-1111/{R:1}" />  
 </rule>  
 </rules>  
 </rewrite>  
 </system.webServer>  
</configuration>
```