0 votes
in Rock by NicoleCampbell (1.3k points)
edited

After I completed the Dev Refresh and tried to open the dev environment I keep getting a 500 Internal server error.

1 Answer

0 votes
by NicoleCampbell (1.3k points)
edited
 
Best answer

Go to the web file, not web.connectionstrings file in the www.root folder. Search for Rewrite. I saw two sections with Rewrite in them these are the sections I removed and the dev environment worked again.

Line 34

<customErrors mode="On" defaultRedirect="/Error.aspx" redirectMode="ResponseRewrite" />

Line 138

<rewrite>
    <rules>
        <rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
            <match url="*" negate="false" />
            <conditions logicalGrouping="MatchAny">
                <add input="{HTTPS}" pattern="off" />
            </conditions>
            <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
        </rule>
                <rule name="Force non-www" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="^journeyconnect\.org$" negate="true" />
                        <add input="{HTTP_HOST}" pattern="^admin.journeyconnect\.org$" negate="true" />
                        <add input="{HTTP_HOST}" pattern="^admin.thejourney\.cc$" negate="true" />
                    </conditions>
                    <action type="Redirect" url="https://journeyconnect.org/{R:1}" />
                </rule>
    </rules>
</rewrite>
Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...