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 <icicimov@xxxxxxxxx> wrote: From: Igor Cicimov <icicimov@xxxxxxxxx> Subject: Re: A rewrite rule To: users@xxxxxxxxxxxxxxxx Date: Friday, November 25, 2011, 8:06 PM
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$
On Fri, Nov 25, 2011 at 10:46 PM, Dennis <arsenepark@xxxxxxxxxxxx> wrote:
Hi, guys,
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 |
|