httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurtis Rader <>
Subject [users@httpd] Re: Removing query string through .htaccess
Date Fri, 22 May 2015 21:10:37 GMT
On Thu, May 21, 2015 at 10:02 PM, Bob <> wrote:

> Thanks for your kind response. I have tried your rule sets but
> unfortunately it is working as before.
> i.e. and
> both redirect to

My guess is that you still have a broken rule in your config from earlier
attempts to get this working. Perhaps you've attempted to do this redirect
via a .htaccess file and httpd.conf and forgotten that a broken rule is
still in effect in one of those files.

Also, how are you testing this? Do you have a UNIX like system you can work
with? If so I would recommend hand-crafting the request and using the nc
command to issue it. That gives you maximum control and makes it easy to
see exactly what the web server is returning. For example, I created a file
name "g.req" with the following contents then ran ```nc localhost 80 <
g.req``` from a terminal window. Note that the last line of the file is an
empty line.

GET /hello.php?action=register HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64;
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Content-Length: 0
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie: wordpress_test_cookie=WP+Cookie+check


Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

View raw message