httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob <bobnli...@gmail.com>
Subject Re: [users@httpd] .htaccess and query string
Date Wed, 30 Jul 2014 12:06:14 GMT
On Wed, 30 Jul 2014 07:51:25 -0400
Eric Covener <covener@gmail.com> wrote:

> On Wed, Jul 30, 2014 at 7:48 AM, Bob <bobnlinux@gmail.com> 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 rule as

RewriteEngine on
RewriteCond %{QUERY_STRING} ^&L=0$ [NC]
RewriteRule dd_googlesitemap http://domain/sitemap.xml [R=301,L]

but still no success where the scenario is 

http://domain/?eID=dd_googlesitemap&L=0 should be redirected to http://domain/sitemap.xml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message