tomcat rewrite 实现

Wednesday, December 3, 2008

Check that users are using the correct domain name to get to your site. ie, users gong to http://example.com/blah will be redirected to http://www.example.com/blah


Domain Name Check
www.example.com
^/(.*)$
http://www.example.com/$1


if web server contains two hostnames, change the condition as following

example.com

done

reference:http://tuckey.org/urlrewrite/

Posted by Michael.Ding at 5:53 PM

0 comments:

Post a Comment