Mod_Rewrite voodoo

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

 



Hello everyone,

I am restructuring a Web site and need to move a number of files to
different subdirectories. The files have an embedded date code in
[filename]DDMMYY.ext format, I was hoping to hook the YY.ext portion
to redirect ...05.html files to the 2005/ subdirectory, ...06.html
files to the 2006/ subdirectory, etc.

This shouldn't be that difficult, but I'm not getting anywhere with
the RewriteCond/RewriteRule pairs I've tried so far. Either I get
500 errors, create endless loops or the rule is not applied at all.

How should a rewrite rule like this be formulated?

Reese


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