0

I have an all default MediaWiki website: No added CSS/JS, No added extensions or custom PHP.

I run the homepage of that website in Google Pagespeed Insights and I get:

MediaWiki: Avoid multiple page redirects

(Initial: http://example.com/) | 0 milliseconds
https://example.com | 630 milliseconds
/index.php?title=...(example.com) | 480 milliseconds
  • I don't think I should remove an http to https redirection for any page (especially homepage).

  • I am not sure if I should remove the query string ?title= and more not sure why it's appended to homepage.

How should get rid of "Multiple redirects" in this case?

  • You tested http://example.com/ in Google Pagespeed, correct? But I guess search engines won’t index this URL, as it redirects. So, the only case where the speed of this URL matters is if someone types in this URL manually, correct? If you test http://example.com/index.php?title=..., do you also get a warning? – unor Apr 29 '19 at 3:15
  • @unor when I check http://example.com/index.php?title= I get the same result. Yet, if I check https://example.com/index.php?title= I get a significantly better result. – user58733 Apr 30 '19 at 10:24
0

This will be improved at some point in MediaWiki 1.34, see T120085.

That said, you can always set up a manual (webserver-level redirect from) your HTTP base domain to the main page (see the short URL manual for having a nicer main page URL).
Although, if I were concerned about speed, I'd rather spend my energy figuring out why does a single redirect take half a second.

| improve this answer | |
  • I host this particular website on a (once great, now quite lousy) hosting service. I can't think of any other reason because not I configured the relevant CetnOS server environment. – user58733 Apr 28 '19 at 8:16
  • I keep up with upgrades and can't wait this to be fixed, is 1.34 still relevant? – user58733 Sep 9 '19 at 20:46
  • 1
    Probably not, as it didn't happen yet and 1.35 will be branched very soon. There are plans to do this but no specific target date yet. – Tgr Sep 10 '19 at 12:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy