Re: .htaccess and query string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 30 Jul 2014 08:25:46 -0400
Eric Covener <covener@xxxxxxxxx> wrote:

> On Wed, Jul 30, 2014 at 8:06 AM, Bob <bobnlinux@xxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux