IIS Root Page Request ReWrite to other locally hosted site RRS feed

  • Question

  • So I've been scratching my head for a bit here trying to get a rewrite that would allow me to get the landing page of  to point to a sub hosted word press.  

    Xcite isnt actually what im working on.  Don't want to put the real URL out there. 

    Im currently working in a test environment in order to figure this out before deploying to a live site.

    The following works very well for the word press content and admin folders

    				<rule name="ReverseProxy - WordPress Folders" stopProcessing="true">
    						<match url="(wp-admin|wp-content|wp-includes)(.*)" />
    						<action type="Rewrite" url="{R:0}" />

    Tried this 

    <rule name="ReverseProxy - RootRequest to Wordpress" stopProcessing="true">
    <match url="(.*)" />
    <conditions logicalGrouping="MatchAny">
    <add input="{HTTP_HOST}" pattern="^(www\.Xcite\.com)$" />
    <add input="{PATH_INFO}" pattern="(wp-admin|wp-content|wp-includes)(.*)" />
    <action type="Rewrite" url=""/>

    As well as this

    <match url="(*$" />
    <action type="Rewrite" url="" />

    Any help would be greatly appreciated. 


    Thursday, November 8, 2018 9:12 PM

All replies