[Radiant] Subdomains and old urls
Sean Cribbs
seancribbs at gmail.com
Tue Apr 8 16:02:00 CDT 2008
Chris,
This sounds like a good candidate for an extension. The basic strategy
would be to override either SiteController.show_page or Page.find_by_url
to search for a page that has the passed legacy URL (you'll need to add
a field in the database), in the case that the requested URL was not
found. If a page is found, do a Permanent redirection (301 IIRC) to the
new URL. If it isn't found, pass through the FileNotFoundPage or exception.
Sean
Chris Barnes wrote:
> I'm currently moving my blog over to Radiant. I would like to preserve the
> old links if possible but at the same time move the blog part of the site to
> a subdomain blog.randomutterings.com. For example I wrote an article on
> redundant firewalls and the old url is
> http://randomutterings.com/articles/2007/06/15/redundant-failover-firewall-with-pf-pfsync-and-carp-on-freebsdI
> want the new url to be
> http://blog.randomutterings.com/2007/06/15/redundant-failover-firewall-with-pf-pfsync-and-carp-on-freebsdbut
> at the same time I would like to have the old url forward the user to
> the new one if that is possible. Any suggestions are welcome.
>
>
More information about the Radiant
mailing list