Re: non www to www URL Rewrite

2017-11-13 Thread RAVIRAJ SHAH
Sorry didn't get you exactly
But I did above setup in tomcat web server only

Thanks
Ravi

On Mon, Nov 13, 2017, 20:45 shivashankar manukondu <
sivasankar.m...@gmail.com> wrote:

> Please make it these changes in your webserver
>
> Regards,
> Siva
>
> On Sat, Nov 11, 2017 at 10:17 AM, RAVIRAJ SHAH 
> wrote:
>
> > Thanks shiv,
> >
> > But no luck it is not working
> > I did configuration as below
> >
> > Created rewrite.config file in
> > ../conf/Catalina/example.com
> >
> > RewriteCond %{HTTP_HOST} ^example\.com [NC]
> > RewriteCond %{HTTPS} ^on$
> > RewriteRule ^(.*)$ https://www.example.com/$[R=permanent,L,NE]
> >
> > And added valve as below in server.xml
> >  > unpackWARs="true" autoDeploy="true"
> > xmlValidation="false" xmlNamespaceAware="false">
> > 
> >
> > Do guide if anything to correct or any other solution
> >
> > On Fri, Nov 10, 2017, 14:43 shivashankar manukondu <
> > sivasankar.m...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > If you want both should be accessible then try to use "ServerAlias"
> > option
> > >
> > > If you want redirect all requests then try
> > >
> > > RewriteCond %{HTTP_HOST} ^example\.com [NC]
> > > RewriteCond %{HTTPS} ^on$#if you don't want https then make off
> > > RewriteRule ^(.*)$ https://www.example.com/$ [R=permanent,L,NE]  #
> > > flags based on your requirement
> > >
> > > Please remember the above rules will be work based on all your existing
> > > rewrite rules.
> > >
> > >
> > > Regards,
> > > Siva
> > >
> > >
> > >
> > > On Thu, Nov 9, 2017 at 10:58 AM, RAVIRAJ SHAH  >
> > > wrote:
> > >
> > > > Hi Andre,
> > > >
> > > > Thanks for quick reply
> > > > yes it is pointing to same public IP
> > > >
> > > > Thanks,
> > > > Raviraj
> > > >
> > > >
> > > >
> > > > Thanks & Regards,
> > > > Raviraj Shah
> > > >
> > > >
> > > > On 8 November 2017 at 22:50, André Warnier (tomcat) 
> > > wrote:
> > > >
> > > > > On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
> > > > >
> > > > >> Sorry for my language
> > > > >> my query with example
> > > > >>
> > > > >> Let's say my website domain is "example.com"
> > > > >> Now I want to redirect "example.com" to "www.example.com"
> > > > >> Kindly share how I can achieve it
> > > > >>
> > > > >
> > > > > Well first, you need the 2 entries in the DNS server for "
> > example.com
> > > ".
> > > > > You need :
> > > > > example.com --> public Internet IP address of your server (A)
> > > > > www.example.com --> public  Internet IP address of your server (B)
> > > > >
> > > > > and A == B
> > > > >
> > > > > otherwise it will never work.
> > > > > Do you have that ?
> > > > >
> > > > > You can check this by getting a command-line window somewhere and
> > > > entering
> > > > > :
> > > > > nslookup example.com
> > > > > nslookup www.example.com
> > > > > and both should give the same IP address.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) 
> > > > wrote:
> > > > >>
> > > > >> 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 <
> me.raviraj...@gmail.com>
> > > >  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
> > > > >
> > > > >
> > > > >  > > > > autoDeploy=
> > > > > "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-unsubscr...@tomcat.apache.org
> > > > >>> For 

Re: non www to www URL Rewrite

2017-11-13 Thread shivashankar manukondu
Please make it these changes in your webserver

Regards,
Siva

On Sat, Nov 11, 2017 at 10:17 AM, RAVIRAJ SHAH 
wrote:

> Thanks shiv,
>
> But no luck it is not working
> I did configuration as below
>
> Created rewrite.config file in
> ../conf/Catalina/example.com
>
> RewriteCond %{HTTP_HOST} ^example\.com [NC]
> RewriteCond %{HTTPS} ^on$
> RewriteRule ^(.*)$ https://www.example.com/$[R=permanent,L,NE]
>
> And added valve as below in server.xml
>  unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> 
>
> Do guide if anything to correct or any other solution
>
> On Fri, Nov 10, 2017, 14:43 shivashankar manukondu <
> sivasankar.m...@gmail.com> wrote:
>
> > Hi,
> >
> > If you want both should be accessible then try to use "ServerAlias"
> option
> >
> > If you want redirect all requests then try
> >
> > RewriteCond %{HTTP_HOST} ^example\.com [NC]
> > RewriteCond %{HTTPS} ^on$#if you don't want https then make off
> > RewriteRule ^(.*)$ https://www.example.com/$ [R=permanent,L,NE]  #
> > flags based on your requirement
> >
> > Please remember the above rules will be work based on all your existing
> > rewrite rules.
> >
> >
> > Regards,
> > Siva
> >
> >
> >
> > On Thu, Nov 9, 2017 at 10:58 AM, RAVIRAJ SHAH 
> > wrote:
> >
> > > Hi Andre,
> > >
> > > Thanks for quick reply
> > > yes it is pointing to same public IP
> > >
> > > Thanks,
> > > Raviraj
> > >
> > >
> > >
> > > Thanks & Regards,
> > > Raviraj Shah
> > >
> > >
> > > On 8 November 2017 at 22:50, André Warnier (tomcat) 
> > wrote:
> > >
> > > > On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
> > > >
> > > >> Sorry for my language
> > > >> my query with example
> > > >>
> > > >> Let's say my website domain is "example.com"
> > > >> Now I want to redirect "example.com" to "www.example.com"
> > > >> Kindly share how I can achieve it
> > > >>
> > > >
> > > > Well first, you need the 2 entries in the DNS server for "
> example.com
> > ".
> > > > You need :
> > > > example.com --> public Internet IP address of your server (A)
> > > > www.example.com --> public  Internet IP address of your server (B)
> > > >
> > > > and A == B
> > > >
> > > > otherwise it will never work.
> > > > Do you have that ?
> > > >
> > > > You can check this by getting a command-line window somewhere and
> > > entering
> > > > :
> > > > nslookup example.com
> > > > nslookup www.example.com
> > > > and both should give the same IP address.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) 
> > > wrote:
> > > >>
> > > >> 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
> > > >
> > > >
> > > >  > > > autoDeploy=
> > > > "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-unsubscr...@tomcat.apache.org
> > > >>> For additional commands, e-mail: users-h...@tomcat.apache.org
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >
> > > > 
> -
> > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> > --
> >
> > Regards
> > Siva
> > #068860592040
> >
>



-- 

Regards
Siva
#068860592040


Re: non www to www URL Rewrite

2017-11-11 Thread RAVIRAJ SHAH
Thanks shiv,

But no luck it is not working
I did configuration as below

Created rewrite.config file in
../conf/Catalina/example.com

RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ https://www.example.com/$[R=permanent,L,NE]

And added valve as below in server.xml



Do guide if anything to correct or any other solution

On Fri, Nov 10, 2017, 14:43 shivashankar manukondu <
sivasankar.m...@gmail.com> wrote:

> Hi,
>
> If you want both should be accessible then try to use "ServerAlias" option
>
> If you want redirect all requests then try
>
> RewriteCond %{HTTP_HOST} ^example\.com [NC]
> RewriteCond %{HTTPS} ^on$#if you don't want https then make off
> RewriteRule ^(.*)$ https://www.example.com/$ [R=permanent,L,NE]  #
> flags based on your requirement
>
> Please remember the above rules will be work based on all your existing
> rewrite rules.
>
>
> Regards,
> Siva
>
>
>
> On Thu, Nov 9, 2017 at 10:58 AM, RAVIRAJ SHAH 
> wrote:
>
> > Hi Andre,
> >
> > Thanks for quick reply
> > yes it is pointing to same public IP
> >
> > Thanks,
> > Raviraj
> >
> >
> >
> > Thanks & Regards,
> > Raviraj Shah
> >
> >
> > On 8 November 2017 at 22:50, André Warnier (tomcat) 
> wrote:
> >
> > > On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
> > >
> > >> Sorry for my language
> > >> my query with example
> > >>
> > >> Let's say my website domain is "example.com"
> > >> Now I want to redirect "example.com" to "www.example.com"
> > >> Kindly share how I can achieve it
> > >>
> > >
> > > Well first, you need the 2 entries in the DNS server for "example.com
> ".
> > > You need :
> > > example.com --> public Internet IP address of your server (A)
> > > www.example.com --> public  Internet IP address of your server (B)
> > >
> > > and A == B
> > >
> > > otherwise it will never work.
> > > Do you have that ?
> > >
> > > You can check this by getting a command-line window somewhere and
> > entering
> > > :
> > > nslookup example.com
> > > nslookup www.example.com
> > > and both should give the same IP address.
> > >
> > >
> > >
> > >
> > >
> > >> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) 
> > wrote:
> > >>
> > >> 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
> > >
> > >
> > >  > > autoDeploy=
> > > "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-unsubscr...@tomcat.apache.org
> > >>> For additional commands, e-mail: users-h...@tomcat.apache.org
> > >>>
> > >>>
> > >>>
> > >>
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > >
> > >
> >
>
>
>
> --
>
> Regards
> Siva
> #068860592040
>


Re: non www to www URL Rewrite

2017-11-10 Thread shivashankar manukondu
Hi,

If you want both should be accessible then try to use "ServerAlias" option

If you want redirect all requests then try

RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{HTTPS} ^on$#if you don't want https then make off
RewriteRule ^(.*)$ https://www.example.com/$ [R=permanent,L,NE]  #
flags based on your requirement

Please remember the above rules will be work based on all your existing
rewrite rules.


Regards,
Siva



On Thu, Nov 9, 2017 at 10:58 AM, RAVIRAJ SHAH 
wrote:

> Hi Andre,
>
> Thanks for quick reply
> yes it is pointing to same public IP
>
> Thanks,
> Raviraj
>
>
>
> Thanks & Regards,
> Raviraj Shah
>
>
> On 8 November 2017 at 22:50, André Warnier (tomcat)  wrote:
>
> > On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
> >
> >> Sorry for my language
> >> my query with example
> >>
> >> Let's say my website domain is "example.com"
> >> Now I want to redirect "example.com" to "www.example.com"
> >> Kindly share how I can achieve it
> >>
> >
> > Well first, you need the 2 entries in the DNS server for "example.com".
> > You need :
> > example.com --> public Internet IP address of your server (A)
> > www.example.com --> public  Internet IP address of your server (B)
> >
> > and A == B
> >
> > otherwise it will never work.
> > Do you have that ?
> >
> > You can check this by getting a command-line window somewhere and
> entering
> > :
> > nslookup example.com
> > nslookup www.example.com
> > and both should give the same IP address.
> >
> >
> >
> >
> >
> >> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat) 
> wrote:
> >>
> >> 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
> >
> >
> >  > autoDeploy=
> > "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-unsubscr...@tomcat.apache.org
> >>> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>>
> >>>
> >>>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>



-- 

Regards
Siva
#068860592040


Re: non www to www URL Rewrite

2017-11-09 Thread RAVIRAJ SHAH
Hi Andre,

Thanks for quick reply
yes it is pointing to same public IP

Thanks,
Raviraj



Thanks & Regards,
Raviraj Shah


On 8 November 2017 at 22:50, André Warnier (tomcat)  wrote:

> On 08.11.2017 17:35, RAVIRAJ SHAH wrote:
>
>> Sorry for my language
>> my query with example
>>
>> Let's say my website domain is "example.com"
>> Now I want to redirect "example.com" to "www.example.com"
>> Kindly share how I can achieve it
>>
>
> Well first, you need the 2 entries in the DNS server for "example.com".
> You need :
> example.com --> public Internet IP address of your server (A)
> www.example.com --> public  Internet IP address of your server (B)
>
> and A == B
>
> otherwise it will never work.
> Do you have that ?
>
> You can check this by getting a command-line window somewhere and entering
> :
> nslookup example.com
> nslookup www.example.com
> and both should give the same IP address.
>
>
>
>
>
>> On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat)  wrote:
>>
>> 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
>
>
>  autoDeploy=
> "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-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: non www to www URL Rewrite

2017-11-08 Thread tomcat

On 08.11.2017 17:35, RAVIRAJ SHAH wrote:

Sorry for my language
my query with example

Let's say my website domain is "example.com"
Now I want to redirect "example.com" to "www.example.com"
Kindly share how I can achieve it


Well first, you need the 2 entries in the DNS server for "example.com".
You need :
example.com --> public Internet IP address of your server (A)
www.example.com --> public  Internet IP address of your server (B)

and A == B

otherwise it will never work.
Do you have that ?

You can check this by getting a command-line window somewhere and entering :
nslookup example.com
nslookup www.example.com
and both should give the same IP address.





On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat)  wrote:


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






  
/>






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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: non www to www URL Rewrite

2017-11-08 Thread RAVIRAJ SHAH
Sorry for my language
my query with example

Let's say my website domain is "example.com"
Now I want to redirect "example.com" to "www.example.com"
Kindly share how I can achieve it

On Wed, Nov 8, 2017, 19:08 André Warnier (tomcat)  wrote:

> 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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: non www to www URL Rewrite

2017-11-08 Thread tomcat

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






 





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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: non www to www URL Rewrite

2017-11-08 Thread RAVIRAJ SHAH
Anybody please help

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
>
>


non www to www URL Rewrite

2017-11-06 Thread RAVIRAJ SHAH
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












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