Remove anywhere from web address
Any idea how I can replace anywhere with default web link? instead of http://server_Name/Anywhere to use http://Server_Name
Any idea how I can replace anywhere with default web link? instead of http://server_Name/Anywhere to use http://Server_Name
I had it setup for our customer portal however only my infra team can view IIS settings.
So on top of my head I think we used the URL rewrite module in IIS and wrote a regex pattern.
This pattern would then redirect all incoming traffic to https://tarigtserver to https://targitserver/antserver
https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
This website a few useful ways to use this module : https://www.yaplex.com/blog/examples-iis-rewrite-rules/
This is my web.config file of the default website where targit is installed.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="false">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{SERVER_PORT_SECURE}" pattern="^0$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
<rule name="Root Hit Redirect" stopProcessing="true">
<match url="^$" />
<action type="Redirect" url="/anywhere" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Thanks a lot!!
Comments
2 comments