RewriteCond %{QUERY_STRING} (?:^|&)date=(.*)$ RewriteRule ^calendar/(.*)$ /calendar/$1?tribe-bar-date=%1 [L,R]