2018-07-01, 12:37 PM
I wanted to report a bug (on 1.8) regarding HTTP status codes, but after searching for existing similar issues on GitHub I found this:
https://github.com/mybb/mybb/issues/2864
And I saw it was labeled "enhancement" and "1.9" so I'll be writing here, even though I'd tend to consider this a bug that could be pretty serious. So I wanted to add that I noticed MyBB returns status 200 also when the board is in maintenance mode (set offline in the settings). I believe this is actually pretty dangerous because if a search engine sees status 200 on a page it will think you have replaced all the content with the maintenance notice, and it will index that instead. What is suggested is to use the right code, 503 (service unavailable), maybe also with a retry-after header. That way search engines will just go away, not index anything, and come back later to try again. Googling for "maintenance 503" or something like that will bring up several sources that recommend doing this, including Google: https://webmasters.googleblog.com/2011/0...ntime.html
https://github.com/mybb/mybb/issues/2864
And I saw it was labeled "enhancement" and "1.9" so I'll be writing here, even though I'd tend to consider this a bug that could be pretty serious. So I wanted to add that I noticed MyBB returns status 200 also when the board is in maintenance mode (set offline in the settings). I believe this is actually pretty dangerous because if a search engine sees status 200 on a page it will think you have replaced all the content with the maintenance notice, and it will index that instead. What is suggested is to use the right code, 503 (service unavailable), maybe also with a retry-after header. That way search engines will just go away, not index anything, and come back later to try again. Googling for "maintenance 503" or something like that will bring up several sources that recommend doing this, including Google: https://webmasters.googleblog.com/2011/0...ntime.html