I have been checking the progress of my site indexing in Google, for some bizarre reason best known to itself, there is a very random URL indexed against my domain which doesn't exist.


Is there a way I can forward the URL and query string to the home page as a 301 in my .htaccess file?


URL that google indexed ,should contain a part that doesn't exist in your site(or parameter in query string) !
Assume there is GGGGGG in that URL(and of course, that's Not in yours), so :

RewriteCond %{REQUEST_URI}   ^\/(.*)GGGGGG(.*)$
RewriteRule   (.*)   http://www.footballadvisor.net [R=301,L]
  • Thanks very much for taking the time to reply, not sure if I have done something wrong but this didnt work :( RewriteCond %{REQUEST_URI} ^\/(.*)Itemid=46(.*)$ RewriteRule (.*) footballadvisor.net [R=301,L]
    – Richard G
    Aug 10 '11 at 11:53
  • @Richard G you should replace GGGGGG with something you that's wrong!
    – undone
    Aug 10 '11 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy