[users@httpd] Re: Removing query string through .htaccess

2015-05-22 Thread Kurtis Rader
On Thu, May 21, 2015 at 10:02 PM, Bob bobnli...@gmail.com wrote: Thanks for your kind response. I have tried your rule sets but unfortunately it is working as before. i.e. http://mydomain.com/page1/?xyz and http://mydomain.com/page1?xyz both redirect to http://mydomain.com My guess is that

[users@httpd] Re: Removing query string through .htaccess

2015-05-21 Thread Bob
I'm also successful with following but goes to home page, can't preserve the actual link RewriteCond %{THE_REQUEST} \?[^\ ]+ RewriteRule (.*) /$1? [R=302,L] On Thu, 21 May 2015 12:23:42 + Bob bobnli...@gmail.com wrote: Hello All, I have already gone through a no. of links for

Re: [users@httpd] Re: Removing query string through .htaccess

2015-05-21 Thread Kurtis Rader
On Thu, May 21, 2015 at 6:18 AM, Bob bobnli...@gmail.com wrote: I'm also successful with following but goes to home page, can't preserve the actual link RewriteCond %{THE_REQUEST} \?[^\ ]+ RewriteRule (.*) /$1? [R=302,L] Works for me. Although I would write the rule like this RewriteCond

[users@httpd] Re: Removing query string through .htaccess

2015-05-21 Thread Bob
Hello Kurtis, Thanks for your kind response. I have tried your rule sets but unfortunately it is working as before. i.e. http://mydomain.com/page1/?xyz and http://mydomain.com/page1?xyz both redirect to http://mydomain.com On Fri, May 22, 2015 at 1:47 AM, Kurtis Rader kra...@skepticism.us