Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: .htaccess redirect problem

  • Subject: Re: .htaccess redirect problem
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Fri, 06 Oct 2006 04:02:32 +0100
  • Newsgroups: alt.www.webmaster
  • Organization: schestowitz.com / ISBE, Manchester University / ITS / Netscape / MCC
  • References: <12iauejsilld69e@corp.supernews.com> <12iauo2iq5gfo6f@corp.supernews.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ z ] on Thursday 05 October 2006 22:37 \__

> z wrote:
> 
>> I'm having trouble redirecting a site.
>> 
>> Domain #1 has a directory called /design.  I want to redirect only that
>> directory to the root of Domain #2.
>> 
>> What am I doing wrong?
>> 
>> RewriteEngine On
>> RewriteRule /design/(.*) http://www.example.com/$1 [R=301,L]
>> 
>> I'm also going to need another rule that redirect a second directory to
>> the root of Domain #3.
> 
> Nevermind... I'm so tired I can't think.
> 
> (put .htaccess directly in subdirectory)

I am sometimes puzzled as I find that many folks (John Bokma included) still
configure their Web server at file-level rather than use a front-end. And
yes, I'm aware of the fact that many hosts don't offer that option.

Roy (who is not all that familiar with Apache config files *grin*)

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index