Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Jacobsen 593 posts 2389 karma points
    Sep 16, 2021 @ 07:13
    Bo Jacobsen
    0

    lets encrypt rewrite rule for urlrewritingnet

    Hi all.

    Can anyone convert this, no https rewrite rule so it works in urlrewritingnet.config for lets encrypt?

    <rule name="Allow SSL renewal" patternSyntax="Wildcard" stopProcessing="true">
      <match url=".well-known/*" />
      <action type="None" />
    </rule>
    

    Into

    <?xml version="1.0" encoding="utf-8"?>
    <urlrewritingnet xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
        <rewrites>
            <!-- Into here -->
            <add name="https Rewrite" 
                 virtualUrl="http://(.*)" 
                 destinationUrl="https://$1" 
                 redirect="Domain" 
                 redirectMode="Permanent" 
                 ignoreCase="true" />
        </rewrites>
    </urlrewritingnet>
    

    We still got alot of old sites using the urlrewritingnet.config and if anyone can make this happen, we will safe alot of time, from converting all sites to use the rewrite module in the web.config.

Please Sign in or register to post replies

Write your reply to:

Draft