View Single Post
Old 01-04-2012, 08:52 AM   PM User | #7
leslie.jones
New Coder

 
Join Date: Nov 2011
Posts: 88
Thanks: 4
Thanked 26 Times in 26 Posts
leslie.jones is an unknown quantity at this point
Just adding to that, if you *really* want to do it (and for the sake of Google bringing people here):

The reason your version fails is because of the ? question mark ? You cannot use the question mark in the match as it signals a querystrings which is caught as separate data.

This basic example will do what you want for the specific URL quoted, but it can probably be better refined or optimised.
Code:
RewriteCond %{REQUEST_URI} ^/blog-article.php$
RewriteCond %{QUERY_STRING} ^id=14$ 
RewriteRule ^(.*)$ http://www.google.co.uk [R=301,L]
Hope that helps.
leslie.jones is offline   Reply With Quote