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 F387B9B9F for ; Wed, 11 Jul 2012 01:38:03 +0000 (UTC) Received: (qmail 51963 invoked by uid 500); 11 Jul 2012 01:38:01 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 51919 invoked by uid 500); 11 Jul 2012 01:38:01 -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 51909 invoked by uid 99); 11 Jul 2012 01:38:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 01:38:00 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [75.180.132.120] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 01:37:53 +0000 X-Authority-Analysis: v=2.0 cv=Dp/UCRD+ c=1 sm=0 a=SWowGRsViryGCq6W3uAXzg==:17 a=Z8NhdVnBYBkA:10 a=FKkrIqjQGGEA:10 a=vpuGBOzt1oAA:10 a=gKdNUozYXGYA:10 a=wPDyFdB5xvgA:10 a=IkcTkHD0fZMA:10 a=Fx01H1t8AAAA:8 a=FUdNYOMFAAAA:8 a=g56PPvh8VTfRm7SJgYsA:9 a=QEXdDO2ut3YA:10 a=resepmd4uhkA:10 a=qiWi7Edwir4A:10 a=NWVoK91CQyQA:10 a=SWowGRsViryGCq6W3uAXzg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 75.177.187.225 Received: from [75.177.187.225] ([75.177.187.225:3548] helo=mail.electrichendrix.com) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 64/1C-13948-CD8DCFF4; Wed, 11 Jul 2012 01:37:32 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.electrichendrix.com (Postfix) with ESMTP id 41FE041A002 for ; Tue, 10 Jul 2012 21:37:31 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.electrichendrix.com Received: from mail.electrichendrix.com ([127.0.0.1]) by localhost (mail.electrichendrix.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xKM5NnGGZ5Gz for ; Tue, 10 Jul 2012 21:37:30 -0400 (EDT) Received: from mail.electrichendrix.com (mail.electrichendrix.com [192.168.124.3]) by mail.electrichendrix.com (Postfix) with ESMTP id D0D9A41A001 for ; Tue, 10 Jul 2012 21:37:30 -0400 (EDT) Date: Tue, 10 Jul 2012 21:37:30 -0400 (EDT) From: Chris Arnold To: users@httpd.apache.org Message-ID: <189829546.44875.1341970650770.JavaMail.root@electrichendrix.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 7.2.0_GA_2669 (ZimbraWebClient - IE7 (Win)/7.2.0_GA_2669) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Rewrite Rule Help (again) >You've been already given the answer by Eric what else do you need? Read mod_rewrite manual and combine RewriteCond and RewriteRule >commands thats all you need to do. Igor,i have read the rewrite guide and tried what i thought was needed. Which i have repeated here more than 1 time but this time i will show what i tried from the guide: Move Homedirs to Different Webserver Description: Many webmasters have asked for a solution to the following situation: They wanted to redirect just all homedirs on a webserver to another webserver. They usually need such things when establishing a newer webserver which will replace the old one over time. Solution: The solution is trivial with mod_rewrite. On the old webserver we just redirect all /~user/anypath URLs to http://newserver/~user/anypath. RewriteEngine on RewriteRule ^/~(.+) http://newserver/~$1 [R,L] And here is how i have altered it to fit what i need: RewriteRule ^/$ http://192.168.123.2/ [L] This just leaves me at the webserver. I have also tried what others have suggested here and replied with the results. BTW, the solution Igor is referring to, does anyone have that email and can post it (send it to me) as i seem to have lost that email. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org