Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- RedirectMatch and Dump Query Strings


jk3210 - 3:39 am on Jul 17, 2012 (gmt 0)


I'm trying to redirect everything in the "foo" directory and below, to a file. This works...


redirectMatch 301 ^/foo/ http://www.example.com/filename/

...except it also appends any query strings found in "/foo/" to "/filename/"...which results in "/filename/?=true" not just /filename/.

How do I make sure any query strings get stripped from the redirect?


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