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.
36 lines
1.7 KiB
36 lines
1.7 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<configuration> |
|
<system.webServer> |
|
<rewrite> |
|
<rules> |
|
<rule name="View File" enabled="true" stopProcessing="true"> |
|
<match url="^([a-zA-Z0-9]+)[\.]([^/]+)[^/]$" ignoreCase="false" /> |
|
<action type="Rewrite" url="/lib/download.php?file={C:1}" appendQueryString="false" logRewrittenUrl="false" /> |
|
<conditions> |
|
<add input="{REQUEST_URI}" pattern="(.+)" /> |
|
</conditions> |
|
</rule> |
|
<rule name="RewriteUserFriendlyURL1" stopProcessing="true"> |
|
<match url="^([a-zA-Z0-9]+)[\.]([^/]+)/([a-zA-Z0-9]+)/?$" /> |
|
<conditions> |
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
|
</conditions> |
|
<action type="Rewrite" url="delete_upload.php?file={R:1}.{R:2}&hash={R:3}" /> |
|
</rule> |
|
</rules> |
|
</rewrite> |
|
<staticContent> |
|
<mimeMap fileExtension=".*" mimeType="application/octet-stream" /> |
|
</staticContent> |
|
<security> |
|
<requestFiltering> |
|
<requestLimits maxAllowedContentLength="100000000" /> |
|
</requestFiltering> |
|
</security> |
|
<httpErrors> |
|
<remove statusCode="404" subStatusCode="-1" /> |
|
<error statusCode="404" prefixLanguageFilePath="" path="http://error.teknik.io/404" responseMode="Redirect" /> |
|
</httpErrors> |
|
</system.webServer> |
|
</configuration>
|
|
|