Extension talk:HTTP302Found
"Pushes a HTTP code 302 (Found) to the browser when there is a redirect instead of handling it internally. The end user will not notice any difference (other than the address to the page having an ?rd=Redirecting_page bit at the end)."
Huh? I must be a silly goat because I don't follow, exactly. Thank you for any clarification. Wikademia
- So how MediaWiki redirects work is that it doesn't send a "Location" header to the browser, and it redirects itself, which is why you can go to en:ccTLD and it'll redirect you to en:Country code top-level domain even though the URL stays the same. With this extension, it uses HTTP code 302 (see en:List of HTTP status codes) so that the URL on the client's browser changes.
- This is mostly used for search engine optimization. Hope that clears it up, sorry it took so long for me to get back to you. --ianweller 22:33, 13 November 2009 (UTC)
Great work
editGreat work, i've tried to code this myself, but after a couple of days i've given up. Yours does it very well. However, i found that i don't really care in my wiki to tell that a redirect has taken place, so i've changed
$target = $target->getFullURL()."?rd=".$title->mUrlform;
to
$target = $target->getFullURL();
Actually i could have removed the entire second function after that, but perhaps i'll give it 10 minutes and make it configurable. 92.243.182.121 07:23, 25 December 2009 (UTC)
Seems to be broken
editThis doesn't seem to work on 1.18. I guess the class structure has changed too much. Beta M (talk) 06:35, 10 March 2012 (UTC)