glaforge/gaelyk — Issue #104: Permanent redirect support
Author: codeconsole
Created: 2012-01-16 02:47:23+00:00
State: open

Currently all implementations of redirects are 302, which are pretty bad when it comes to SEO.

The reason they are bad is because Google will index the url proceeding the 302. Thus in a lot of cases you want to issue a 301 instead of a 302.

Gaelyk should support this in both routes.groovy and groovlets.

perhaps use

permanent-redirect '/mypage'

or

redirect-301 '/mypage'