Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E17E9200D33 for ; Wed, 8 Nov 2017 17:35:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DFDF6160BDA; Wed, 8 Nov 2017 16:35:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 30E371609E0 for ; Wed, 8 Nov 2017 17:35:37 +0100 (CET) Received: (qmail 28116 invoked by uid 500); 8 Nov 2017 16:35:35 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 28104 invoked by uid 99); 8 Nov 2017 16:35:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 16:35:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B609D1A235A for ; Wed, 8 Nov 2017 16:35:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Hg_y4qMogDmh for ; Wed, 8 Nov 2017 16:35:31 +0000 (UTC) Received: from mail-ot0-f169.google.com (mail-ot0-f169.google.com [74.125.82.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 52BB660F93 for ; Wed, 8 Nov 2017 16:35:31 +0000 (UTC) Received: by mail-ot0-f169.google.com with SMTP id w76so2795659ota.5 for ; Wed, 08 Nov 2017 08:35:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2NGKlFJK8xKfkSQGjltNeLLRPAuou3HF/EXkxmGNIpc=; b=ScwxRVQVe7FaKtaxe4g5luEJAty9kUYrfgBKL51jZENzpwKIIiAPSrO98Pzme/YYdq s4N6eRPlRzssDNGO4TNOcwpl80YqrApB6bMEzjeO3f9YdaEFGF+VPEqAdlWLIacwwT52 DrFmZhAWa/GyrLHJsQmVsJQN8frhYEl0nckzdOy6kR19T+MUL5ZAH1C8ZTFssCjB2/Wu PYLWc8madKtFmWhkOyf+RlkalQGCaaIAQOZscVTJzHQfQnuIKKEI4CIEwqkVWYP4vNLR yvSxZ2mqlPPR9F3VaGUh4YJARpqk9MfK4VR0NRUue7+QOPTRWBE3kkbbGASlhQuyJRrt nz9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2NGKlFJK8xKfkSQGjltNeLLRPAuou3HF/EXkxmGNIpc=; b=rvu93zdviCMnR+YxoAJqhUcrR0HrDfXeJQk3uZ8sSpz8fZGbIAZ6tUEofwzDsUWl6p wpDD0CICNv26YSCH1EdLoTP8Eq6Iwo3RV9mOy6C6vESitYJtzwzaCyS8stUhGuyOaYcg 9MP2ZgNIHaoDmSWWkQu00nKVWbvCwku5BaFYjEiDpO6iKxWkKWx4/N8g97dhVDi7cBox sdwBvpB+NniykzhfTEzw9SWbyeqGpBpBwkJOMe5HWP3T3xGOiAETR1AALMcuFvtMQ1Ts M7oaP7UPjtlGikrLuiX30U2Q2P2n6UOK6gfa0BYvE1cMhxAZrugngvQxM79zlfdl9DOw 6aqg== X-Gm-Message-State: AJaThX67zrUia4fs9szmrTaoQMbduQV4H/RLrqDpvxqYdyOxgoM9X93u DWqvkoP1leRP80+jqqHxd1HYn4esAg6KKFnr8UM= X-Google-Smtp-Source: AGs4zMbR/JrKKSEwwx1X6tlIRWEJ+mR05fTuOMRjnypbEACRHwyBhxe0NKW6tWSHPwoqkmEiJfyn8AzVFsyyIWVP5/w= X-Received: by 10.157.53.93 with SMTP id l29mr717263ote.69.1510158929714; Wed, 08 Nov 2017 08:35:29 -0800 (PST) MIME-Version: 1.0 References: <5A0308B6.5050300@ice-sa.com> In-Reply-To: <5A0308B6.5050300@ice-sa.com> From: RAVIRAJ SHAH Date: Wed, 08 Nov 2017 16:35:19 +0000 Message-ID: Subject: Re: non www to www URL Rewrite To: Tomcat Users List Content-Type: multipart/alternative; boundary="001a11c003bc8f617c055d7b4676" archived-at: Wed, 08 Nov 2017 16:35:38 -0000 --001a11c003bc8f617c055d7b4676 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=C3=A9 Warnier (tomcat) wrot= e: > 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=3D301,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 > > --001a11c003bc8f617c055d7b4676--