Copied to clipboard

Flag this post as spam?

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


  • Simon 81 posts 184 karma points
    Feb 29, 2012 @ 12:34
    Simon
    0

    Move published nodes still work

    Funny problem, I've moved a section of my Umbraco 4.7.1 and set up some 301 redirects in the UrlRewriting config

    e.g.

    <add name="IWantToStayRewrite"
              virtualUrl="^~/i-want-to-stay-in-a/(.*)"
              redirectMode="Permanent"
              rewriteUrlParameter="IncludeQueryStringForRewrite"
              destinationUrl="~/great-honeymoon-ideas/i-want-to-stay-in-a/$1"
              ignoreCase="true" />

    The problem I have is that the old Urls still work and don't seem to redirect to the new Urls. The Url stays the same in the browser and by using Fiddler to check the HTTP requests, it's showing as a 200 - OK. Not a 301 to be seen.

    My concern is that this will look like duplicate content to the search engines. I've tried clicking on the top node of my site and doing "Republish whole site" but it doesn't seem to have helped.

    Any ideas?

    Cheers

    Simon

  • Christophe 9 posts 29 karma points
    Mar 13, 2012 @ 22:19
    Christophe
    0

    Hi Simon,

    In your redirection rule you have to add the attribute 'redirect' (with one of the following values: application/domain). As by default it does a simple rewrite and not a real redirection.

    You may find the information in the urlrewritting.net documentation on page number 11 of the pdf available there : http://www.urlrewriting.net/160/en/documentation.html

     

    Regards,

    Christophe

Please Sign in or register to post replies

Write your reply to:

Draft