Last active
July 20, 2024 05:23
-
-
Save shanselman/5191659 to your computer and use it in GitHub Desktop.
Sendy web.config for running on the root of a site on Windows or Azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Sendy all" stopProcessing="true"> | |
<match url="^([a-zA-Z0-9-]+)$" ignoreCase="true" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="{R:1}.php" appendQueryString="true" /> | |
</rule> | |
<rule name="Sendy: link tracker" stopProcessing="true"> | |
<match url="^l/([a-zA-Z0-9/]+)$" ignoreCase="true" /> | |
<action type="Rewrite" url="l.php?i={R:1}" appendQueryString="true" /> | |
</rule> | |
<rule name="Sendy: open tracker" stopProcessing="true"> | |
<match url="^t/([a-zA-Z0-9/]+)$" ignoreCase="true" /> | |
<action type="Rewrite" url="t.php?i={R:1}" appendQueryString="true" /> | |
</rule> | |
<rule name="Sendy: web version" stopProcessing="true"> | |
<match url="^w/([a-zA-Z0-9/]+)$" ignoreCase="true" /> | |
<action type="Rewrite" url="w.php?i={R:1}" appendQueryString="true" /> | |
</rule> | |
<rule name="Sendy: unsubscribe" stopProcessing="true"> | |
<match url="^unsubscribe/(.*)$" ignoreCase="true" /> | |
<action type="Rewrite" url="unsubscribe.php?i={R:1}" appendQueryString="true" /> | |
</rule> | |
<rule name="Sendy: subscribe" stopProcessing="true"> | |
<match url="^subscribe/([a-zA-Z0-9/]+)$" ignoreCase="true" /> | |
<action type="Rewrite" url="subscribe.php?i={R:1}" appendQueryString="true" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow, you have beautifully decorated this post. I really appreciate it very much. People like you also exist in the world. Who share everything. And there are some people who do not share anything with anyone. I wish today's youth wrote your kind post, thank you very much.
https://redqueen.in/