I'm using the standard WordPress Archives widget in dropdown mode on my blog. But apparently the Microsoft Bing spider gets confused by it, because the dropdown code looks like this:

<select name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
... <option/> ... </option> ... </option> ...

In the Redirection plugin, it shows a ton of 404 errors due to a spider from Redmond pinging darn near every page and post on my site asking for a "this.options[this.selectedIndex].value;" file.

What's the best way to fix this problem? Should I use a different widget? Is there a way to tell the spider to knock it off? (To be clear: I do want my pages indexed, but I don't want to deal with a with all the 404 issues)

1 Answer 1


I don't know about Bing's spider but you can create your own widget and instead of using the select tag's onchange event you can use JQuery to bind the change event to do the same:

$("select").change(function () { window.location.replace(this.val()); });

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.