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


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


Just swap in the RewriteRule pattern.

You might do better by deciding exactly which directories should 404 if a query string is present, and which should not and then listing them. Then reduce these lists by removing all but the "common paths" from directories which should all be treated in common -- For example, if all subdirectories of "/directory/" should be 404'ed when a query string is present, then "directory/" is all you need to match in the pattern. Take the shorter or least-likely-to-change (should or should not 404) list and code for that.

It might be that simply excluding the specific path to your script directory, and perhaps the path to your Web-accessible "stats" directory would be an easy, compact solution. But you have to decide, as pretty much all hosts configure their servers differently.

If you read our Forum Charter [webmasterworld.com], you'll find that while we're happy to get you started with examples or to help you to fix a *difficult* bug, we cannot write your code for you. Please check out the documents cited in that charter, using them to decipher the examples above, and see if you can help us help you...

Thanks,
Jim


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