2

I am running Glassfish in standalone mode (without Apache) and my application is accessible on http://mydomain.com.

For SEO purposes I would like to do a 301 redirect from mydomain.com to www.mydomain.com, so typing mydomain.com/page1.jsp in the browser would redirect the user to www.mydomain.com/page1.jsp

Any idea how to do it? I found this http://notsomany.wordpress.com/2010/06/29/glassfish-v2-1-1-site-redirect/ but as I understand it this redirection only works for a specific page.

4

1 回答 1

0

我能想到的最简单的方法是在前面使用 httpd 并使用某种重定向/代理模块。Apache mod_redirect 在这里可能是一个很好的解决方案。

于 2013-01-09T08:47:14.533 回答