mod_rewrite: moved directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Hi,

  I moved one directory one level up in the hierarchy of web pages,
let's say:

    from: http://www.example.com/parent/child/
    to:   http://www.example.com/child/

  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 <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>, from
which I thought the following should handle this case:

    RewriteEngine  on
    RewriteRule    ^/parent/child(.*) /child$1 [R]

  But it does not.  When I try to access the old location, I simlpy
get a 404.

  Is there a way to handle this problem?  With mod_rewrite or any
other "standard" module.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/






















      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux