Manual:$wgMaxRedirects

Details
Max number of redirects to follow when resolving redirects:
 * 1 means only the first redirect is followed (default behavior).
 * 0 or less means no redirects are followed.