httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] mod_rewrite: moved directory
Date Wed, 18 Mar 2009 13:01:46 GMT
On Wed, Mar 18, 2009 at 8:04 AM, Florent Georges <> wrote:
>  Hi,
>  I moved one directory one level up in the hierarchy of web pages,
> let's say:
>    from:
>    to:
>  I try to use mod_rewrite to handle this move, and redirect users
> for a while to the new location.  I've read the URL Rewriting Guide
> at <>, from
> which I thought the following should handle this case:
>    RewriteEngine  on
>    RewriteRule    ^/parent/child(.*) /child$1 [R]

If this is in .htaccess or <directory>, the RewriteBase is stripped
from the URL before your rule compares to it -- it cannot start with a
Also see AllowOverride.

A simple Alias might suffice too.

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message