Forum Moderators: Robert Charlton & goodroi
http://www.example.com/page.html%3E%3Cimg%20src=
I now have over 200 URLS like this showing up under URLS not found in Google Webmaster Tools.
What is the best way to get rid of these? I've written to one of the bookmarking sites over a month ago asking them to correct their code and haven't gotten a response.
Trying a 301 redirect to the page without the junk string doesn't work. Based on that, I'm concerned if I submit the bad URL with the junk string in it to be removed from Google, Google may remove the good page.
Thoughts?
RewriteCond %{REQUEST_URI} ^/page.html$
RewriteCond %{QUERY_STRING} .
RewriteRule ^(.*)$ http://www.yoursite.com/page.html? [R=301,L]
On the whole, though, these 404's shouldn't be a problem except for the fact that they clog up the error report to the point where you might overlook some real problems.
[edited by: tedster at 7:33 pm (utc) on Nov. 6, 2008]
[edit reason] de-link the url [/edit]
The WMT help pages even tell you that you should not worry about the 404s listed if they are out of your control.
You should monitor your site regularly for broken links that are under your control - but a few here and there occasionally will also not cause you any real problem.
From the SEO prospective, the only drawback is that you wont get value of pagerank from these backlink. I think Google will not have any problem unless & until the broken links is from your website.
I agree with tedster. Just make sure that there is no broken links in your website.