htaccess redirect to a relative location

Posted by stanleyxu2005 on Stack Overflow See other posts from Stack Overflow or by stanleyxu2005
Published on 2010-05-27T19:40:21Z Indexed on 2010/05/27 19:41 UTC
Read the original article Hit count: 197

Filed under:
|

Hi All,

On my development server, there are many web projects, like:

development_server/proj_a/fldr1 development_server/proj_b/fldr1

There projects are deployed onto different productive server, like

proj_a_server/fldr1 proj_b_server/fldr1

Now I want to redirect request to fldr1 to other_fldr

On development server, I write:

Redirect permanent /proj_a/fldr1 /proj_a/other_fldr

But on productive server, I should write:

Redirect permanent /fldr1 /other_fldr

The question is that, can I redirect a relative path?

Redirect permanent fldr1 other_fldr

© Stack Overflow or respective owner

Related posts about redirect

Related posts about htaccess