Copied to clipboard

Flag this post as spam?

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


  • John Hodgkinson 613 posts 355 karma points
    Nov 27, 2012 @ 22:32
    John Hodgkinson
    0

    4.11 upgrade UrlRewriting.config URL redirects across domains

    are inserting slashes at the end of destination URLs and causing 404 errors... also virtual application directories under umbraco root are now requiring various assemblies and causing sub-apps to crash... ugh!!!!

  • John Hodgkinson 613 posts 355 karma points
    Nov 28, 2012 @ 00:48
    John Hodgkinson
    0

    below is a rule that no longer works and is inserting a trailing slash at the end of the .aspx/ causing the 404 to occur...

    <add name="redirect4" redirect="Domain" redirectMode="Permanent" virtualUrl="http://ncfindalawyer.com" destinationUrl="http://www.ncbar.org/public-pro-bono/lawyer-referral-service/nc-find-a-lawyer.aspx" ignoreCase="true" rewrite="Domain"/>

    you can click on the link to see it rewrite and fail: http://ncfindalawyer.com

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 28, 2012 @ 04:06
    Fuji Kusaka
    0

    Hi John,

    Ive tried your url here but the website seems to be down. Nothing is showing up.

  • John Hodgkinson 613 posts 355 karma points
    Nov 28, 2012 @ 04:07
    John Hodgkinson
    0

    try turning friendly errors off on your browser

  • Stephen 767 posts 2273 karma points c-trib
    Nov 28, 2012 @ 09:21
    Stephen
    0

    Same here, ncfindalawyer.com timeouts.

  • John Hodgkinson 613 posts 355 karma points
    Nov 28, 2012 @ 13:42
    John Hodgkinson
    0

    ok, try this one then...

    http://www.electncjudges.org

    <add name="redirect77" redirect="Domain" redirectMode="Permanent"

     virtualUrl="http://www.electncjudges.org"

                 destinationUrl="http://jpe.ncbar.org/2012-judicial-race-information.aspx"

                 ignoreCase="true" rewrite="Domain"/>

     

  • John Hodgkinson 613 posts 355 karma points
    Nov 28, 2012 @ 13:59
    John Hodgkinson
    0

    this is what I'm seeing on my end.. with the trailing / added and causing the 404... if I remove the trailing / manually the page then loads... 

    .

  • Arie 224 posts 675 karma points
    Nov 28, 2012 @ 15:10
    Arie
    1

    I'm unable to get to either site.

    However, as an interim solution you might be able to use the IIS Redirector to strip the trailing slashes to all requests that end in ".aspx/".

  • Arie 224 posts 675 karma points
    Nov 28, 2012 @ 15:14
    Arie
    0

    By the way, did you upgrade from 4.9.x or from 4.10.x? Based on what I've seen (and experienced) I would be a bit hesitant to run Production sites on 4.11.0 (or any .0 for that matter).

  • Stephen 767 posts 2273 karma points c-trib
    Nov 28, 2012 @ 16:04
    Stephen
    0

    None of the link that you provide work. I'm unable to get to either site, they just time out,and in fact the server at 216.27.11.99 just does not answer on port 80.

    Also if you set redirect="Domain" I'm not sure you need to also set rewrite="Domain".

    Finally, what version did you upgrade from? To the best of my knowledge the rewriting library hasn't changed for ages so I doubt there is a relation...

  • John Hodgkinson 613 posts 355 karma points
    Nov 28, 2012 @ 21:14
    John Hodgkinson
    0

    creating a rule as Arie suggested actually worked...

            <rewrite>

                <rules>

     

                    <!-- SEO: Remove trailing slash from URLs -->

                    <rule name="Remove trailing slash" stopProcessing="true">

                        <match url="(.*)/$" />

                        <conditions>

                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

                        </conditions>

                        <action type="Redirect" redirectType="Permanent" url="{R:1}" />

                    </rule>

     

                </rules>

            </rewrite>

     

  • Arie 224 posts 675 karma points
    Nov 28, 2012 @ 23:03
    Arie
    0

    Great!

    By the way, did you see that there's an update to 4.11.0 already? (http://umbraco.com/follow-us/blog-archive/2012/11/28/umbraco-411-update.aspx)

  • John Hodgkinson 613 posts 355 karma points
    Nov 29, 2012 @ 00:41
    John Hodgkinson
    0

    yep got it today! thx Arie!

Please Sign in or register to post replies

Write your reply to:

Draft