Removing query string through .htaccess

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

 



Hello All,

I have already gone through a no. of links for removing query strings and till now all are going back to domain.
The one I'm using presently is

``````````````
RewriteCond %{QUERY_STRING} .
RewriteRule ^$ /? [R=302,L]

`````````````````````

As obvious the above goes back to homepage, but is there any rule set which just remove the query string and keep the url intact ?

like http://mywxample.com/any_page/?xyz should be changed as http://mywxample.com/any_page

Any help is very much appreciated.

with regards,
Bob

---------------------------------------------------------------------
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