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

<Host name="" appBase="webapps" unpackWARs="true" autoDeploy=

    <Valve className="org.apache.catalina.valves.rewrite.RewriteValve" />


Created rewrite.config file in ../conf/Catalina/<Hostname>/

*RewriteCond %{HTTP_HOST} !^(.*)\.yourdomain\.com$ [NC] RewriteRule ^(.*)$ <>/$1 [R=301,L]*

*kindly do needful*

Thanks & Regards,
Raviraj Shah

Reply via email to