On 08.11.2017 14:30, RAVIRAJ SHAH wrote: > Anybody please help I think that you first try to communicate more clearly what you want to achieve. "redirect non-www URL to www URL only" does not appear to make much sense. Also please send your message to the list as *plain text*, not html. It will make it easier to read configuration lines below which look like URL's. > > On Tue, Nov 7, 2017, 12:00 RAVIRAJ SHAH wrote: > >> Dear All, >> >> Kindly request you to help to resolve this issue >> >> Problem Statement : >> we want to redirect non-www URL to www URL only >> >> Current setup : >> >> Defined rewrite valve in server.xml as below >> >> >> > "true"> >> >> >> >> >> >> >> >> >> >> Created rewrite.config file in ../conf/Catalina// >> >> >> *RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule ^(.*)$ >> http://www.yourdomain.com /$1 [R=301,L]* >> >> *kindly do needful* >> >> Thanks & Regards, >> Raviraj Shah >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org