Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 53233 invoked from network); 5 May 2010 21:53:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 May 2010 21:53:17 -0000 Received: (qmail 40018 invoked by uid 500); 5 May 2010 21:53:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39924 invoked by uid 500); 5 May 2010 21:53:14 -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 39916 invoked by uid 99); 5 May 2010 21:53:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 21:53:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.255.104.142] (HELO wltsmtpx02.ldhenergy.net) (216.255.104.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 21:53:07 +0000 In-Reply-To: <4BE1E63E.3000509@newmediagateway.com> References: <4BE1E63E.3000509@newmediagateway.com> To: users@httpd.apache.org MIME-Version: 1.0 X-KeepSent: 8C4EF28C:D42ADC17-8525771A:0077FC66; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.1 February 07, 2008 Message-ID: From: John.C.Kennedy@LDHEnergy.com Date: Wed, 5 May 2010 17:52:39 -0400 X-MIMETrack: Serialize by Router on WLTSMTPX02/SERVER/LDHE(Release 8.0.2|August 07, 2008) at 05/05/2010 05:53:07 PM, Serialize complete at 05/05/2010 05:53:07 PM Content-Type: multipart/alternative; boundary="=_alternative 00782DE18525771A_=" X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Redirect question --=_alternative 00782DE18525771A_= Content-Type: text/plain; charset="US-ASCII" ----- Original Message ----- > From: John.C.Kennedy@LDHEnergy.com > Date: Wed, 5 May 2010 16:46:34 -0400 > Subject: [users@httpd] Redirect question > To: users@httpd.apache.org > > > My user wants me to set up so that > http://application > will redirect to: > http://server/application How are your VirtualHost containers setup (assuming you are using them)? A simple rewrite rule with the domain check should work (assuming that "application" and "server" are domain names). ServerName server ServerAlias application RewriteEngine On RewriteCond %{HTTP_HOST} ^application$ [NC] RewriteRule . http://server/application [R=permanent] .... -- Justin Pasher I get the same looping result. (I shortened application to app because I am too lazy to type all that!): The requested URL /appappappappappappappappappappappappappappappappappappappappapp was not found on this server. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --=_alternative 00782DE18525771A_= Content-Type: text/html; charset="US-ASCII"




----- Original Message -----
> From: John.C.Kennedy@LDHEnergy.com
> Date: Wed, 5 May 2010 16:46:34 -0400
> Subject: [users@httpd] Redirect question
> To: users@httpd.apache.org
>
>
> My user wants me to set up so that
>
http://application <http://application/>
> will redirect to:
>
http://server/application

How are your VirtualHost containers setup (assuming you are using them)?
A simple rewrite rule with the domain check should work (assuming that
"application" and "server" are domain names).

<VirtualHost 1.2.3.4:80>
   ServerName  server
   ServerAlias application

   RewriteEngine   On
   RewriteCond %{HTTP_HOST} ^application$ [NC]
   RewriteRule .
http://server/application [R=permanent]
   ....  
</VirtualHost>


--
Justin Pasher



I get the same looping result. (I shortened application to app because I am too lazy to type all that!):
The requested URL /appappappappappappappappappappappappappappappappappappappappapp was not found on this server.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:
http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
  "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


--=_alternative 00782DE18525771A_=--