Re: Mod_Rewrite voodoo

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

 



On 06-Jan-10 15:58, Reese wrote:

Hmmm. So adding more specificity, for years 2005-2009 and only for
the affected domain, this should work:

RewriteCond %{HTTP_HOST} domain\.com
RewriteRule (.*)(0[5-9]).html$ /20$2/$1$2.html [R=301,L]

I'll test it.


It doesn't seem to be working. Testing for files with the embedded
date code corresponding to years 2005 and 2006 (files with 05.html
and 06.html text strings), I have this:

RewriteEngine On
RewriteCond %{HTTP_HOST} subdomain\.domain\.ext
RewriteRule (.*)(0[5-6]).html$ /20$2/$1$2.html [R=301,L]
RewriteEngine Off

and, there is no redirection happening at all, in the sandbox.
I did a quick test on the live files after copying (not moving)
them to their target destination, no effect outside of the
sandbox either.

What am I missing?

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