Sorry about this but I think it is a reasonable request for help..
Google seems to be delivering wikipedia URLs for pages with a 302 interwiki link eg
http://www.google.co.uk/search?q=schools+wikipedia&ie=utf-8&oe=utf-8...
gets en.wikipedia.org/wiki/SchoolsWP%3Aindex%3Ahome as the URL with
http://schools-wikipedia.org/ as content
As far as I can see interwiki redirects are no longer used by Wikimedia software which just delivers straight links to target off the wikipedia pages. So nothing links through the 302 but Google returns it anyway.
Anyway could we therefore disable the temporary redirects to fix this problem, or not serve them to Google or if there is some reason why the redirects have to stay, show Google perm redirects instead (it is not as if we will want the redirects to point at anywhere else)
Thanks for any help
Andrew Cates
On Thu, Sep 16, 2010 at 4:09 PM, Andrew Cates andrew.cates@soschildren.org wrote:
Sorry about this but I think it is a reasonable request for help..
Google seems to be delivering wikipedia URLs for pages with a 302 interwiki link eg
http://www.google.co.uk/search?q=schools+wikipedia&ie=utf-8&oe=utf-8...
gets en.wikipedia.org/wiki/SchoolsWP%3Aindex%3Ahome as the URL with
http://schools-wikipedia.org/ as content
As far as I can see interwiki redirects are no longer used by Wikimedia software which just delivers straight links to target off the wikipedia pages. So nothing links through the 302 but Google returns it anyway.
Anyway could we therefore disable the temporary redirects to fix this problem, or not serve them to Google or if there is some reason why the redirects have to stay, show Google perm redirects instead (it is not as if we will want the redirects to point at anywhere else)
This looks like a Google bug. I don't think we should just disable 302s to interwikis -- you shouldn't have to run MediaWiki (and know Wikipedia's interwiki link table) to be able to reliably link to things in the same way you can link to them on Wikipedia. Right now third-party software can do stuff like <a href="http://en.wikipedia.org/wiki/$1"> and replace $1 by user input, and it will work basically like [[$1]] typed on Wikipedia, and that's good.
Aryeh Gregor wrote:
Right now third-party software can do stuff like <a href="http://en.wikipedia.org/wiki/$1"> and replace $1 by user input, and it will work basically like [[$1]] typed on Wikipedia, and that's good.
http://en.wikipedia.org/wiki/mw:Not_really...
I still don't understand why users (third-party or not) are forced to use links http://en.wikipedia.org/wiki/Special:Search?search=mw:like_this in order to redirect properly.
MZMcBride
It depends on the interwiki settings. Some have 'local' [1] enabled, some not.
See the documentation[1]:
iw_local: informs MediaWiki how it should treat interwiki links coming from external sources. If iw_local is 1, then it will treat these links as though they were generated from within the local wiki. For example, the interwiki link fr: on the en.wikipedia.org project has iw_local=1 set. Therefore, the link to http://en.wikipedia.org/wiki/fr:Accueil gracefully redirects you to the French Homepage (Accueil). However, the Wikimedia foundation project site is flagged 0 on en.wikipedia.org; the link to http://en.wikipedia.org/wiki/wikimedia:Home does not work, even though [[wikimedia:Home]] would work if it were on a local Wikipedia page.
http://en.wikipedia.org/wiki/commons:Apple This example works fine, no need for any weird stuff.
http://en.wikipedia.org/wiki/mw:DB This one doesn't and only works when done from within a page (like [[mw:DB]]) becuase iw_local is 0.
I think the Special:Search entry is a bug / undocumented feature in that it ignored the 'local'-setting.
--Krinkle
[1] http://www.mediawiki.org/wiki/Manual:Interwiki_table
Op 19 sep 2010, om 00:34 heeft MZMcBride het volgende geschreven:
Aryeh Gregor wrote:
Right now third-party software can do stuff like <a href="http://en.wikipedia.org/wiki/$1"> and replace $1 by user input, and it will work basically like [[$1]] typed on Wikipedia, and that's good.
http://en.wikipedia.org/wiki/mw:Not_really...
I still don't understand why users (third-party or not) are forced to use links http://en.wikipedia.org/wiki/Special:Search? search=mw:like_this in order to redirect properly.
MZMcBride
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org