Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Have an SEO question. 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 doesnt exist.

http://www.footballadvisor.net/index.php?option=com_content&view=article&id=35:is-it-possible-to-change-the-types-of-menu-entries&catid=31:general&Itemid=46

Is there a way I can forward the url and querystring to www.footballadvisor.net as a 301 in my htacess file?

Thanks :)

share|improve this question

migrated from stackoverflow.com Aug 11 '11 at 20:40

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

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]
share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.