Bob, there is not “?” in the QUERY_STRING, and RewriteRule at the moment states that you want to match dd_googlesitemap in your URL, which based on your initial email is not what you want.
you want: "http://domain/?eID=dd_googlesitemap&L=0 should be redirected to http://domain/sitemap.xml” which would translate to: RewriteEngine On RewriteCond %{QUERY_STRING} ^eID=dd_googlesitemap&L=0$ [NC] RewriteRule ^/$ http://domain/sitemap.xml [R=301,L] thank you Roman. On Jul 30, 2014, at 8:38 AM, Bob <bobnli...@gmail.com> wrote: > On Wed, 30 Jul 2014 08:25:46 -0400 > Eric Covener <cove...@gmail.com> wrote: > >> On Wed, Jul 30, 2014 at 8:06 AM, Bob <bobnli...@gmail.com> wrote: >>> RewriteCond %{QUERY_STRING} ^&L=0$ [NC] >> >> >> the query strin doesn't begin with &L. Why are you only matching part of it? >> > > I try to use RewriteCond %{QUERY_STRING} ^?eID=dd_googlesitemap&L=0 [NC] > and it cause server error. > > then I add (\) before (?) like > > RewriteCond %{QUERY_STRING} ^\?eID=dd_googlesitemap&L=0 [NC] > RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L] > > Error gone but no success yet :-( > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org >