httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Mod_Rewrite voodoo
Date Wed, 06 Jan 2010 21:23:12 GMT
One more thing, it will work for this century only since 20xx is hard coded
in the rule. Thought should mention it although it's not going to be your
problem in 2100 haha


On Thu, Jan 7, 2010 at 7:58 AM, Reese <howell.r@inkworkswell.com> wrote:

> On 06-Jan-10 15:50, Patrick Horgan wrote:
>
>  So adding RewriteCond %{HTTP_HOST} domain\.com is needed, yes?
>>>
>>
>
>  RewriteRule (.*)(0[0-9]).html$ /20$2/$1$2.html [R,L]
>>
>
>
> 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.
>
> 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@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message