Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] 301 redirect of index.html

This is a bug, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=323435

Jetty devs said it will be fixed in the next release. Also said there is a snapshot build with the fix at
https://oss.sonatype.org/content/groups/jetty-with-staging/org/eclipse/jetty/jetty-distribution/7.2.0-SNAPSHOT/Test it if you want and post back how it goes ;)--------------------------------------------------From: "Kjell Tillstrand" <kjell@xxxxxxxxxxxxxx>Sent: Friday, September 03, 2010 4:35 PMTo: <jetty-users@xxxxxxxxxxx>Subject: [jetty-users] 301 redirect of index.html> Hi,>> I've would like to make a permanent (301) redirect of> www.domain.com/index.html to www.domain.com. I've tried using> MovedContextHandler but I only get 302 redirect's even tho I set the> permanent flagg to true.>> I've also tried using a servlet using catching the pattern "/index.html">> resp.setStatus(301);> resp.setHeader("location" , "http://www.domain.com/";);>> but this will of course render i a infinite loop.>> On a Apache server I would put something like this in a .htacces file> ---> Options +FollowSymLinks> RewriteCond %{THE_REQUEST} ^.*/index.html> RewriteRule ^(.*)index.html$ http://www.domain.com/$1 [R=301,L]> --->> My question is how can I solve this issue with jetty?>> Kind regards> Kjell Tillstrand> _______________________________________________> jetty-users mailing list> jetty-users@xxxxxxxxxxx> https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top