I'm not an expert on this, so this information may not be completely correct. Because redirects can be accomplished in several ways, there's no one way to turn off redirects.
Server redirects can be controlled using the preference network.http.redirection-limit in about
:config. More info here,
http://kb.mozillazine.org/Network.http. ... tion-limit . Although the article doesn't specifically state it, you could try a setting of 0 to turn off redirects. I don't think this would be advisable, since many sites seem to use this kind of redirect and would break if it were disabled.
More likely you're thinking of META redirects. If you want to build your own Mozilla, there appears to be a way to disable this feature. See
http://www.xulplanet.com/references/xpc ... wser1.html . It also appears that an extension named Tabbrowser Extensions can configure META redirects. See
http://piro.sakura.ne.jp/xul/tabextensi ... ex.html.en .
A third method of redirection is to use JavaScript. You may have to disable JavaScript if you want to disable this type of redirection. It might be possible to disable JavaScript capabilities more selectively, but I'll leave that to you to discover. See
http://www.mozilla.org/projects/securit ... olicy.html .