Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 09:34:19 -0400 Eric Covener wrote: > On Wed, Jul 30, 2014 at 9:25 AM, Bob wrote: > >> RewriteRule ^/$ http://domain/sitemap.xml [R=301,L] > > wrong for htaccess. Try ^$ > Dear Eric, many many thanks for the clue :-) the URL has modified with http://domain/sitemap.xmleI

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 9:25 AM, Bob wrote: >> RewriteRule ^/$ http://domain/sitemap.xml [R=301,L] wrong for htaccess. Try ^$ -- Eric Covener cove...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 08:59:54 -0400 Roman Jurkov wrote: > 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=d

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 8:38 AM, Bob wrote: > RewriteCond %{QUERY_STRING} ^\?eID=dd_googlesitemap&L=0 [NC] The question mark delimits the query string, it doesn't actually appear in it. Try using the rewritelog to see what your regular expression is actually being compared against. -- Eric Co

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Roman Jurkov
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”

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 08:25:46 -0400 Eric Covener wrote: > On Wed, Jul 30, 2014 at 8:06 AM, Bob 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_googlesitema

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 8:06 AM, Bob wrote: > RewriteCond %{QUERY_STRING} ^&L=0$ [NC] the query strin doesn't begin with &L. Why are you only matching part of it? -- Eric Covener cove...@gmail.com - To unsubscribe, e-mail: us

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Bob
On Wed, 30 Jul 2014 07:51:25 -0400 Eric Covener wrote: > On Wed, Jul 30, 2014 at 7:48 AM, Bob wrote: > > RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L] > > First arg should be ^$ not a piece of the query string. > > Hello Eric, thanks for your response. I have modified the

Re: [users@httpd] .htaccess and query string

2014-07-30 Thread Eric Covener
On Wed, Jul 30, 2014 at 7:48 AM, Bob wrote: > RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L] First arg should be ^$ not a piece of the query string. -- Eric Covener cove...@gmail.com - To unsubscribe, e-mail

[users@httpd] .htaccess and query string

2014-07-30 Thread Bob
Dear list, I need a rewrite where query string is the answer. http://domain/?eID=dd_googlesitemap&L=0 should be redirected to http://domain/sitemap.xml So I have added the following to .htaccess RewriteEngine on RewriteCond %{QUERY_STRING} ^\eID\=dd_googlesitemap\&L=0$ [NC] RewriteRule dd_goog