[Ilugc] regular expression the check if a string is absent

  • From: venkat83@xxxxxxxxx (Venkatraman S)
  • Date: Tue Jun 9 10:42:08 2009

On Tue, Jun 9, 2009 at 10:19 AM, Kenneth Gonsalves
<lawgon@xxxxxxxxxxxxxxx>wrote:

I want all calls to this site to be rewritten as
http://example.com/2009/. For example:
http://example.com/home/ should become http://example.com/2009/home/. So
here
the logic is that is the url does not start with '2009/', that should be
inserted, otherwise it should be left alone.


Tried ReWriteCond + ReWriteRule?

<havent tried>
RewriteCond $1 !^(2009)
RewriteRule ^(.*)$ /2009/$1
</havent tried>

-V-
http://twitter.com/venkasub

Other related posts: