Sign up ×
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.

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

Thanks :)

share|improve this question

migrated from Aug 11 '11 at 20:40

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

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   (.*) [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 (.*) [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 posting your answer, you agree to the privacy policy and terms of service.