Copied to clipboard

Flag this post as spam?

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


  • Damian Green 452 posts 1433 karma points
    Jul 29, 2014 @ 14:15
    Damian Green
    0

    API to add redirects or a way to import a file (csv etc) of redrects to create

    I need to do the above because the problem is this:

    We have an old site that has hundreds if not thousands of pages. The old site is not umbraco and things are been restructured and edited as they are brought across by the content editors.

    However the package wont handle edited parent page urls with subsequent child nodes added. Do you understandwhat im saying here?

    say the parent page was

    • help_docs

    with child docs of

    • helpdocs -- child1 -- child_2

    We now want to change helpdocs to help-docs (or maybe just help). If the parent is changed and then subsequent child docs are added they wont get redirected properly because helpdocs doesn't exist and it doesn't create a mapping for help_docs/*

    So what we have decided is to add a property to the content on the new site to record the old url. This will allow the content to be added as the new structure and exactly as they want it and record the old url against it - and then i can extract this url and the new on and create a flat file of redirects that need creating.

    Any pages that were deleted or merged could have a redirect added manually or a page added the the CMS and a physical redirect added.

    I then need to get this extracted info of oldulr, id, baseid/ newurl imported somehow - so id clear down the existing redirects table and import.

    Is that clear? :)

    Its either going to be a manual db insert or a n other way.

    What do you think?

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 29, 2014 @ 14:22
    Stefan Kip
    0

    I don't understand completely, but I think you could use InfoCaster.Umbraco.UrlTracker.Repositories.UrlTrackerRepository as API, or import CSV etc. in SQL Server natively.

  • Damian Green 452 posts 1433 karma points
    Jul 29, 2014 @ 15:59
    Damian Green
    0

    ok thanks - ill let you know on the solution i finally settled on.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies