I have the following
get form on my website for language switching.
<form method="get" action="?"> <label for="language">Language: </label> <select id="language" name="lang"> <option disabled="disabled" value="es">Espanol</option> <option disabled="disabled" value="da">Dansk</option> <option value="de">Deutsch</option> <option value="en">English</option> <option disabled="disabled" value="fr">Francais</option> <option disabled="disabled" value="it">Italiano</option> </select> <input type="submit" value="GO"> </form>
This constructs URLs of the form
/?lang=en and note that currently my site only has the following URLs available:
Visiting anything else (e.g.
/?lang=fr) returns a
404 so Google does not index them.
What is a problem though is that the Google Webmaster Tools shows all disabled languages as broken links even though I've marked them with
I want to stop Google from trying to visit those links but I cannot use
rel="nofollow" on those disabled options because I don't think that
rel is a valid attribute of
<option />. What should I do?
Note that I don't want to remove the disabled options from the form.