<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirection Https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
<rule name="REWRITE_TO_HTML" stopProcessing="true">
<match url="^(.+).html$" />
<conditions logicalGrouping="MatchAll" />
<action type="Redirect" url="{R:1}.sn" />
</rule>
<rule name="REWRITE_TO_PHP" stopProcessing="true">
<match url="^(.+).php$" />
<conditions logicalGrouping="MatchAll" />
<action type="Redirect" url="{R:1}.sn" />
</rule>
<rule name="test1">
<match url="^(.*)\.sn" />
<action type="Rewrite" url="{R:1}.php" />
</rule>
<rule name="tttt" stopProcessing="true">
<match url="^(.+).php(.+)" />
<action type="Redirect" url="{R:1}.sn{R:2}" />
</rule>
<rule name="tttt1" stopProcessing="true">
<match url="^(.+).html(.+)" />
<action type="Redirect" url="{R:1}.sn{R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
OxyDrim
0
Newbie Poster
Recommended Answers
Jump to PostThere is no set system to do this...however, I've found a blog post that should assist here: http://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/translate-htaccess-content-to-iis-webconfig
They are doing the opposite of what you are but it should help you reverse …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.