sebduggan / muraURLTools

Mura plugin for managing alternative URLs and redirection
10 stars 11 forks source link

Feature: automatically save old url-titles #29

Open gregmoser opened 11 years ago

gregmoser commented 11 years ago

This would be an option in the plugin that you could turn on. It would log any time a change is mate to a url-title by hooking into the onContentSave() event. If the url-title changed, then it would store the old reference, and the new reference in it's own database table. Then on404() the plugin would lookup to see if the url-title is in the old reference table and 301 redirect to the new url.

Just an idea of something that might be handy.

sebduggan commented 11 years ago

I like the sound of this - will look further into implementing it...

JHGrove3 commented 10 years ago

I think something similar to this exists natively in MURA. But it's hidden -- I can't find any way to view or access the redirect information, but it seems to work when I move a page to a new location or change the filename, the old URL redirects to the new URL. BUT when I make a site bundle and restore it, I find this automatic redirecting gets broken.

jeaguilar commented 10 years ago

James, When you make a site bundle, do you include the "Items in Trash Bin" and "Content Version Histories". I haven't tried but I wonder if it still works if you do.