Forum Moderators: phranque
But, now I'm trying to issue a 410/gone to a request coming in from an external 302 redirect script that's requesting the url http*//www.mysite.com/?bcpid=909883157&bclid=909829140&bctid=752841807
But when I do this...
RedirectMatch 410 /?bcpid=909883157&bclid=909829140&bctid=752841807
...it doesn't issue a 410, it serves up the requested page as http*//www.mysite.com/?bcpid=909883157&bclid=909829140&bctid=752841807 (which doesn't exist)
Is there something special I have to do with that query string to get the 410 to work?
Thanks
Query strings are not handled as part of a URL, but rather as data attached to the URL to be passed to the resource *at* that URL. For this reason, support is poor in mod_alias, and requires a RewriteCond in mod_rewrite.
Jim
(By way of explanation, RewriteConds are only evaluated if the RewriteRule pattern matches, as documented in the mod_rewrite docs.)
Jim