Forum Moderators: phranque

Message Too Old, No Replies

How to do 301 redirection in tomcat server

         

bava_seo

9:55 am on Jan 19, 2009 (gmt 0)

10+ Year Member



Hi,

I m using Tomcat server for my website. Please let me know how do i implement 301 redirection code in tomcat server to resolve url conanicalization?

For Apache server we can place seo friendly 301 redirection code in .htaccess file, But what about in Tomcat server how and where to insert 301 permanent redirection code.

Your experiences, suggestions ideas are most welcome.

g1smd

7:37 pm on Jan 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What does the FAQ or manual have to say about it?

Post your best effort code here, with details about what doesn't work.

Caterham

10:26 pm on Jan 19, 2009 (gmt 0)

10+ Year Member



Query your favorite search engine for

UrlRewriteFilter tomcat

bava_seo

5:05 am on Jan 20, 2009 (gmt 0)

10+ Year Member



First let me give clear idea, I gotta do seo work for my client website which is on Tomcat server and now i wanna to do 301 redirection for index.jsp (home page) okie,

Usually for Apache servers we place 301 redirection code in .htaccess file to redirect index.jsp file to .com/ right, Here the problem is that all applications are on tomcat server and i have no idea how to do 301 redirection from www.example.com/index.jsp to www.example.com/ when all website files are on TOMCAT Server.

jdMorgan

3:33 pm on Jan 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So what do you think of Tomcat's URLRewriteFIlter, as suggested above by Cateraham?

Jim

bava_seo

11:59 am on Mar 7, 2009 (gmt 0)

10+ Year Member



does UrlRewriteFilter works for seo 301 permanent redirection (non www to www)

Caterham

2:50 pm on Mar 7, 2009 (gmt 0)

10+ Year Member



Of course, see type="permanent-redirect" for the status code 301.