Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEA261850E for ; Mon, 6 Jul 2015 20:07:02 +0000 (UTC) Received: (qmail 29428 invoked by uid 500); 6 Jul 2015 20:06:54 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 29382 invoked by uid 500); 6 Jul 2015 20:06:54 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 29372 invoked by uid 99); 6 Jul 2015 20:06:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2015 20:06:54 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ka76115@gmail.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2015 20:04:41 +0000 Received: by lagc2 with SMTP id c2so168136713lag.3 for ; Mon, 06 Jul 2015 13:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=gW4yne/a37VVBpd3B3HYKTy1ITJJOUi3vhovjFW25/A=; b=A7Uqw1IkksB3WFVYs/h3n93eTIlI8AOqpSdhViE6Zs+1h1khq8k3bGbXq5ltRP5+zT qeQc5FJ+cGDwUgZzkjAUYCVP3J3pLNhwX9ka5YLZJKDjoIX9ehXehX7LzspSjDu6wuDH 43+h1M3caiENo/ovtJbMBUS7CZIuPhclgzX4FOy+2bir5rEA3ptlQbehW2OLmCXx+gpi /dbjs9fseLhmyJ+6uG7kqTf1Dbox77HntGRyIgoEYMnqewcp1ufSub/mOc94Q2J9l4j1 49luPZT8q8xe3hZ7dNnMArfYrS/xksvEbtfk1RF8D1IpTtHdBTDsnapxZuiJA7GpTAeI HHuA== MIME-Version: 1.0 X-Received: by 10.112.130.68 with SMTP id oc4mr518243lbb.87.1436213143975; Mon, 06 Jul 2015 13:05:43 -0700 (PDT) Received: by 10.112.118.46 with HTTP; Mon, 6 Jul 2015 13:05:43 -0700 (PDT) Date: Tue, 7 Jul 2015 01:35:43 +0530 Message-ID: From: Ashish k To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=047d7b3a81cc44bad7051a3a6ebf X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Apache redirect subdomain without changing the browser URL --047d7b3a81cc44bad7051a3a6ebf Content-Type: text/plain; charset=UTF-8 Hi List I want to redirect http://subdomain.example.com to http://subdomain.example.com/subdomain (I donot want http://example.com/subdomain ) using rewrite rules only. Tried all possible ways unsuccessfully. I got some points over this excellent arrticle http://forums.hostgator.com/rewrite-subdomains-point-sub-folders-t47619.html?s=12718aaafd8ea994669a2f8b3c69209f& ; Now I am wondering, does apache really could not do it using mod_rewrite? Any insights on this will be appreciated. Thanks in advance Ashish --047d7b3a81cc44bad7051a3a6ebf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi
=C2=A0 =C2=A0 List
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0I want to redirect http://subdomain.example.com to http://subdomain.example.com/subdomain (I donot want <= a href=3D"http://example.com/subdomain">http://example.com/subdomain = =C2=A0) using rewrite rules only. Tried all possible ways unsuccessfully. I= got some points over this excellent arrticle=C2=A0http://forums.hostgator.com/rewrite-subd= omains-point-sub-folders-t47619.html?s=3D12718aaafd8ea994669a2f8b3c69209f&a= mp;amp;=C2=A0

Now I am wondering, does apache = really could not do it using mod_rewrite?
Any insights on this wi= ll be appreciated.

Thanks in advance
Ash= ish
--047d7b3a81cc44bad7051a3a6ebf--