Migrating and archiving pages, remap question


(Gil Brener) #1

Hi folks

 

Currently migrating page content from one site to a new version in the same CMS.  I'm wanting to set up redirects for individual pages like so:

 

Visitors to: oldpage.html

 

Automatically redirected to: newpage.html

 

I understand this is done by setting up a remap in the Web Paths of the newpage.html asset.  I have done this, and it doesn't redirect.  Reading around I see that the oldpage.html asset has to be trashed for the remap to take effect?  Is this correct?  I want to archive the old assets, rather than deleting them. 

 

Many thanks


(Joel Porgand) #2

Hi folks

 

Currently migrating page content from one site to a new version in the same CMS.  I'm wanting to set up redirects for individual pages like so:

 

Visitors to: oldpage.html

 

Automatically redirected to: newpage.html

 

I understand this is done by setting up a remap in the Web Paths of the newpage.html asset.  I have done this, and it doesn't redirect.  Reading around I see that the oldpage.html asset has to be trashed for the remap to take effect?  Is this correct?  I want to archive the old assets, rather than deleting them. 

 

Many thanks

 

Archiving the assets won't free up the url, whereas trashing it does. If you move the assets somewhere else or take the URL off the old site you should be able to add remaps for the old urls. 


(Tim Davison) #3

From J.P.: "take the URL off the old site "

 

This is what you need to do.  URL's on assets (even archived ones) take precedence over remap rules.  


(Gil Brener) #4

Many thanks --

 

Can I confirm that there's no way to take the URL off the asset without trashing it?  It seems strange that there is no functionality to archive a page or site while redirecting to a new one.


(Luke Wright) #5

Many thanks --

 

Can I confirm that there's no way to take the URL off the asset without trashing it?  It seems strange that there is no functionality to archive a page or site while redirecting to a new one.

 

Removing its old Web Path (ie. the oldpage.html) from the asset using the Web Paths screen will remove its URLs, also.

 

Also, remaps are based on the entire URL including domain name. If the old pages are sitting on an "archive" site or folder, changing the URL/web path of that may also work. If it's sitting in an archived state in the same folder as your new page, then removing or changing its web path is your best option.


(Tim Davison) #6

You don't have to trash it.  Just remove or change it's web path.  Web path is comprised of 2 parts: a. the 'name' on this particular asset, and b. the path to it, dictated by the site asset that this asset is under.  So you're options are:

 

a. Change the value of the web path on the webpaths screen (just add '_old' on the end or something). e.g. will change the bolded part in hypothetical URL below:

 

http://mydomain.org/path/to/asset/webpath

 

or, b. move the asset to a different location, e.g. will change the bolded part below:

 

http://mydomain.org/path/to/asset/webpath

 

Either of the above will free up the remap so it will work.

 

Moving to trash fits into category b. above, but you don't have to move it to the trash, you just have to move it.