Copied to clipboard

Flag this post as spam?

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


  • Abdul Rahim 14 posts 84 karma points
    Jul 19, 2018 @ 13:55
    Abdul Rahim
    0

    URL Rewrite - OutboundRules - dependencyhandler.axd - 500 (URL Rewrite Module Error.)

    Hi,

    I am not able to see the umbraco backend after written some outbound rules. It is throwing the below error.

    {siteurl}/DependencyHandler.axd?s=L3VtYnJhY28vYXNzZXRzL2Nzcy91bWJyYWNvLmNzczsvdW1icmFjb19jbGllbnQvdHJlZS90cmVlaWNvbnMuY3NzOw&t=Css&cdv=410601797 
    

    500 (URL Rewrite Module Error.)

    If I am setting compilation debug="true", the backend is working. We need to work it when debug="false"

    <rules>
            <clear />
            <!-- BEGIN rule ELEMENT FOR HTTPS REDIRECT -->
            <rule name="Force HTTPS" enabled="true">
                <match url="(.*)" ignoreCase="false" />
                <conditions>
                    <add input="{HTTPS}" pattern="off" />
                </conditions>
                <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
            </rule>
    
    
        </rules>
    <outboundRules rewriteBeforeCache="true">
    
            <rule name="anchor tag" preCondition="CheckHTML" stopProcessing="false">
                <match filterByTags="A" pattern="(http)://(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" />
                    <add input="{URL}" pattern=".axd" negate="true" />  
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />      
                </conditions>
                <action type="Rewrite" value="https://{R:2}" />
            </rule>
            <rule name="Image tag" preCondition="CheckHTML" stopProcessing="false">
                <match filterByTags="Img"  pattern="(.*)(http)://(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" />
                    <add input="{URL}" pattern=".axd" negate="true" />    
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />       
                </conditions>
                <action type="Rewrite" value="{R:1}https://{R:3}" />
            </rule>
            <rule name="Meta tag rule" preCondition="CheckHTML" stopProcessing="false">
                <match filterByTags="CustomTags" customTags="META TAG" pattern="(.*)(http)://(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" />  
                    <add input="{URL}" pattern=".axd" negate="true" />  
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />       
                </conditions>
                <action type="Rewrite" value="{R:1}https://{R:3}" />
            </rule>
            <rule name="Div tag rule" preCondition="CheckHTML" stopProcessing="false">
                <match filterByTags="CustomTags" customTags="DIV TAG" pattern="(.*)(http)://(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" />
                    <add input="{URL}" pattern=".axd" negate="true" /> 
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />          
                </conditions>
                <action type="Rewrite" value="{R:1}https://{R:3}" />
            </rule>
            <rule name="source tag rule" preCondition="CheckHTML" stopProcessing="false">
                <match filterByTags="CustomTags" customTags="SOURCE TAG" pattern="(.*)(http)://(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" />  
                    <add input="{URL}" pattern=".axd" negate="true" />  
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />       
                </conditions>
                <action type="Rewrite" value="{R:1}https://{R:3}" />
            </rule>
            <rule name="video tag rule" preCondition="CheckHTML" stopProcessing="false">
                <match filterByTags="CustomTags" customTags="Video TAG" pattern="(.*)(http)://(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" /> 
                    <add input="{URL}" pattern=".axd" negate="true" />  
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />        
                </conditions>
                <action type="Rewrite" value="{R:1}https://{R:3}" />
            </rule>
            <rule name="RewriteFordataattributes" preCondition="CheckHTML" enabled="true">
                <match filterByTags="None" pattern="(data-video-webmv|data-video-ogv|data-video-m4v|data-video-poster|ng-src)=&quot;(http)://(.*)&quot;" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">        
                    <add input="{URL}" pattern="/umbraco_client" negate="true" />
                    <add input="{URL}" pattern="/umbraco" negate="true" />
                    <add input="{URL}" pattern="/install" negate="true" /> 
                    <add input="{URL}" pattern=".axd" negate="true" />  
                    <add input="{URL}" negate="true" pattern="/App_Plugins" />        
                </conditions>
                <action type="Rewrite" value="{R:1}=&quot;https://{R:3}&quot;" />
            </rule>
    
    
            <preConditions>
                <preCondition name="CheckHTML">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern=".*" />
                </preCondition>
            </preConditions>
    
    
            <customTags>
                <tags name="DIV TAG">
                    <tag name="Div" attribute="style" />
                </tags>
                <tags name="META TAG">
                    <tag name="Meta" attribute="content" />
                </tags>
                <tags name="Video TAG">
                    <tag name="Video" attribute="src" />
                </tags>
                <tags name="SOURCE TAG">
                    <tag name="Source" attribute="srcset" />
                </tags>
                <tags name="FORM">
                    <tag name="Form" attribute="action" />
                </tags>
            </customTags>
        </outboundRules>
    

    Anyone please help?

Please Sign in or register to post replies

Write your reply to:

Draft