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.
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.
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
with child docs of
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?
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.
ok thanks - ill let you know on the solution i finally settled on.
is working on a reply...
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.