Pierre M. wrote:
So, your IE answers 404 and somebody else answers 200. At least one of you is wrong. You must have good information on this to go on.
I don't understand... what do you mean by "my IE answers 404 and somebody else answers 200"? Anyway, I was about to say I can't use wget because I'm on a shared server with no shell access, but then I remembered cron jobs. So here we go.
Key: htaccess line -- code returned by
site.com/static.html -- code returned by
site.com/parent/child (remapped by htaccess to
site.com/index.php?page=child) -- code returned by
site.com/?q=something
No change from original (see first post) -- 200 -- 200 -- 200
RedirectMatch gone /\q=.* -- 200 -- 200 -- 200
RedirectMatch gone (.*)\?q=(.*) -- 200 -- 200 -- 200
RewriteRule ^\?q=.*$ - [G,L] -- 200 -- 200 -- 200
RewriteRule ^\?q=.*$ /gone.htm [G,L] -- 200 -- 200 -- 200
RewriteRule \?q=.* /gone.htm [G,L] -- 200 -- 200 -- 200
The logs for all the static page requests look like this:
Code: Select all
--19:20:01-- http://site.com/static.html
=> `static.html'
Resolving site.com... x.x.x.x
Connecting to site.com|x.x.x.x|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Wed, 15 Nov 2006 00:20:01 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 PHP/4.4.3 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28
OpenSSL/0.9.7a
Last-Modified: Tue, 31 Oct 2006 01:03:45 GMT
ETag: "12bc028-0-4546a0f1"
Accept-Ranges: bytes
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
Length: 0 [text/html]
The logs for all the rewritten page requests look like this:
Code: Select all
--19:22:01-- http://site.com/parent/child
=> `child'
Resolving site.com... x.x.x.x
Connecting to site.com|x.x.x.x|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Wed, 15 Nov 2006 00:22:01 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 PHP/4.4.3 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28
OpenSSL/0.9.7a
X-Powered-By: PHP/4.4.3
Connection: close
Content-Type: text/html; charset=UTF-8
Length: unspecified [text/html]
The logs for all the ?q= requests look like this:
Code: Select all
--19:24:01-- http://site.com/?q=kiwi
=> `index.html?q=kiwi'
Resolving site.com... x.x.x.x
Connecting to site.com|x.x.x.x|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Wed, 15 Nov 2006 00:24:02 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 PHP/4.4.3 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28
OpenSSL/0.9.7a
X-Powered-By: PHP/4.4.3
Connection: close
Content-Type: text/html; charset=UTF-8
Length: unspecified [text/html]
I get the exact same logs for all the htaccess lines listed above. In every case, the static page returns itself, the remapped page returns its correct location (site.com/parent/child is correctly remapped to site.com/index.php?page=child), and the ?q= URL returns the home page (exactly the same as going to just site.com). Please correct me if I've left out some information that is important.