Teknik is a suite of services with attractive and functional interfaces.
https://www.teknik.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.5 KiB
32 lines
1.5 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<configuration> |
|
<system.webServer> |
|
<rewrite> |
|
<rules> |
|
<rule name="RewriteUserFriendlyURL1" stopProcessing="true"> |
|
<match url="^([^/]+)/?$" /> |
|
<conditions> |
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
|
</conditions> |
|
<action type="Rewrite" url="?paste={R:1}" /> |
|
</rule> |
|
</rules> |
|
<outboundRules> |
|
<rule name="OutboundRewriteUserFriendlyURL1" preCondition="ResponseIsHtml1" enabled="false"> |
|
<match filterByTags="A, Form, Img" pattern="^(.*/)\?paste=([^=&]+)$" /> |
|
<action type="Rewrite" value="{R:1}/{R:2}/" /> |
|
</rule> |
|
<preConditions> |
|
<preCondition name="ResponseIsHtml1"> |
|
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> |
|
</preCondition> |
|
</preConditions> |
|
</outboundRules> |
|
</rewrite> |
|
<httpErrors> |
|
<remove statusCode="404" subStatusCode="-1" /> |
|
<error statusCode="404" prefixLanguageFilePath="" path="http://error.teknik.io/404" responseMode="Redirect" /> |
|
</httpErrors> |
|
</system.webServer> |
|
</configuration>
|
|
|