Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Page displays with spurious query string on URL


jdMorgan - 4:12 am on Jan 27, 2010 (gmt 0)


On Apache 1.x or 2.x

# Create 404 on all root folder requests with query strings
# appended by rewriting to a file that does not exist
RewriteCond %{QUERY_STRING} &?ID=
RewriteRule ^[^/]*$ /non-existent-file.hmtl [L]

On Apache 2.x, you can try this (untested) :

# Return 404 response on all root folder
# requests with query strings appended
RewriteCond %{QUERY_STRING} &?ID=
RewriteRule ^[^/]*$ - [R=404,L]

Jim


Thread source:: http://www.webmasterworld.com/apache/4067005.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com