You'll have to forgive my ignorance - where in your app do you do this?

On Tue, Jan 5, 2010 at 8:55 AM, Martin Makundi <
[email protected]> wrote:

> This is what we do with jetty:
>
>    try {
>      // Force 302 redirect status code into 301 'permanent redirect'
>      Field statusField =
> HttpStatus.class.getDeclaredField("__responseLine");
>      statusField.setAccessible(true);
>      Buffer[] responseLine = (Buffer[]) statusField.get(HttpStatus.class);
>      byte[] bytes = responseLine[302].toString().replace("302",
> "301").getBytes();
>      responseLine[302] = new
> ByteArrayBuffer(bytes,0,bytes.length,Buffer.IMMUTABLE);
>    } catch (Exception e) {
>      Utils.errorLog(getClass(), e);
>    }
>
>
> 2010/1/5 VGJ <[email protected]>:
> > Along with all of the SEO stuff I'm working on these days - I'm being
> asked
> > to use 301 redirects on the sites we're optimizing.  How would this be
> done
> > in with Wicket?  Are there alternatives, if not?
> >
> > Thanks!
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to