Re: [users@httpd] A rewrite rule

2011-11-26 Thread Igor Galić
Dennis A I already wrote: Essentially you want to do reverse proxying. http://www.apachetutor.org/admin/reverseproxies > --- On Fri, 11/25/11, Igor Cicimov wrote: > > > > From: Igor Cicimov > Subject: Re: [users@httpd] A rewrite rule > To: users@httpd.apache.org &g

Re: [users@httpd] A rewrite rule

2011-11-25 Thread Dennis
Thanks, Igor,  I want the url in user's browser looks like "tc.example.com/what", so a 302 redirect is not ok. Any other way to do this?Dennis --- On Fri, 11/25/11, Igor Cicimov wrote: From: Igor Cicimov Subject: Re: [users@httpd] A rewrite rule To: users@httpd.apache.o

Re: [users@httpd] A rewrite rule

2011-11-25 Thread Igor Galić
- Original Message - > > Hi, guys, > > > I want to rewrite from "tc.example.com/xyz" to "example.com/good/tc" Essentially you want to do reverse proxying. http://www.apachetutor.org/admin/reverseproxies > I tried the following rewrite rule, but it doesnot work. > > > RewriteCond %{HTTP

Re: [users@httpd] A rewrite rule

2011-11-25 Thread Igor Cicimov
Is this working? RewriteCond %{HTTP_HOST} \.tc\.example\.com$ RewriteRule ^/(.*)$ http://example.com/good/tc/$1 [R,L] or you just want anything to go to /good/tc ? RewriteCond %{HTTP_HOST} \.tc\.example\.com$ RewriteRule ^/.* http://example.com/good/tc [R,L] On Fri, Nov 25, 2011 at 10:46 PM

[users@httpd] A rewrite rule

2011-11-25 Thread Dennis
Hi, guys, I want to rewrite from "tc.example.com/xyz" to "example.com/good/tc" I tried the following rewrite rule, but it doesnot work. RewriteCond %{HTTP_HOST} \.tc\.example\.com$RewriteRule ^/(.*) /good/$1 [NC,P,L] Any idea how to do it? Thanks.Dennis