[Radiant] Subdomains and old urls
Chris Barnes
randomutterings at gmail.com
Tue Apr 8 16:31:00 CDT 2008
I wouldn't mind working on that if there were enough interest. Does anyone
else need this? Also can someone help me to set the blog page of my site to
use a subdomain?
On Tue, Apr 8, 2008 at 5:02 PM, Sean Cribbs <seancribbs at gmail.com> wrote:
> 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.
> >
> >
> >
>
> _______________________________________________
> Radiant mailing list
> Post: Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
--
Chris Barnes
http://www.randomutterings.com
More information about the Radiant
mailing list