.htaccess redirect problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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.

Re: .htaccess redirect problem

z wrote:

Quoted text here. Click to load it

Nevermind... I'm so tired I can't think.

(put .htaccess directly in subdirectory)

Re: .htaccess redirect problem

__/ [ z ] on Thursday 05 October 2006 22:37 \__

Quoted text here. Click to load it

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*)

Re: .htaccess redirect problem

Roy Schestowitz wrote:

Quoted text here. Click to load it

I'm helping someone move their site from 3-sites-on-one-domain (in frames)
to three separate domains.  Google spidered all the files on the main
domain, so have to 301 redirect all the old files (in subdirectories) to
their new homes at the root of the new domains.

Is there another way to do it?

Site Timeline