Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to optimise my site for SEO and it seems as though their is a 302 direct in action for the http requests.

I'm hosting my app on a Tomcat 6 server which lies behind an Apache 2 server. I use the ProxyPass method (http://tomcat.apache.org/tomcat-6.0-doc/proxy-howto.html) to forward all requests to port 8080 (the port my app is hosted on). I've seen a lot of advice on how to set the redirect type when using the VirtualHost method but none to do with ProxyPass.

The app is a Struts app that forwards users on to index.jsp when they hit the base url. Could this also be the issue?

I'm grateful for any help on this one! Cheers!

share|improve this question
add comment

1 Answer 1

I'm not sure how to do this on struts, but you could do this on apache side.

In your configuration file, near ProxyPass directive add following:

RewriteEngine on
RewriteRule ^/$ /index.jsp [R=301,L]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.